Part Number Hot Search : 
AL250 8L12A XCF01S09 2N1518 G225I MAX422 TR8100 40150
Product Description
Full Text Search
 

To Download CY7C68001-56LFC Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ez-usb sx2 ? high-speed usb interface devic e cy7c6800 1 cypress semiconductor corporation  3901 north first street  san jose  ca 95134  408-943-2600 document #: 38-08013 rev. *e revised july 13, 2004 1.0 ez-usb sx2 ? features  usb 2.0-certified compliant ? on the usb-if integrators list: test id number 40000713  operates at high (480 mbps) or full (12 mbps) speed  supports control endpoint 0: ? used for handling usb device requests  supports four configurable endpoints that share a 4- kb fifo space ? endpoints 2, 4, 6, 8 for application-specific control and data  standard 8- or 16-bit external master interface ? glueless interface to most standard microproces- sors dsps, asics, and fpgas ? synchronous or asynchronous interface  integrated phase-locked loop (pll)  3.3v operation, 5v tolerant i/os  56-pin ssop and qfn package  complies with most device class specifications 2.0 applications  dsl modems  ata interface  memory card readers  legacy conversion devices  cameras  scanners  home pna  wireless lan  mp3 players networking printers the ?reference designs? section of the cypress web site provides additional tools for typical usb applications. each reference design comes complete with firmware source code and object code, schematics, and documentation. please see the cypress web site at www.cypress.com. 2.1 block diagram sx2 internal logic usb 2.0 xcvr cy smart usb fs/hs engine 4 kb fifo fifo data bus i2c bus controller (master only) pll 24 mhz xtal dplus dminus data 1.5k vcc scl sda reset# flags (3/4) interrupt#, ready control address (3) read*, write*, oe*, pktend*, cs# ifclk* 8/16-bit data wakeup* figure 2-1. block diagram
cy7c6800 1 for for document #: 38-08013 rev. *e page 2 of 42 2.2 introduction the ez-usb sx2 ? usb interface device is designed to work with any external master, such as standard microprocessors, dsps, asics, and fpgas to enable usb 2.0 support for any peripheral design. sx2 has a built-in usb transceiver and serial interface engine (sie), along with a command decoder for sending and receiving usb data. the controller has four endpoints that share a 4-kb fifo space for maximum flexi- bility and throughput, as well as control endpoint 0. sx2 has three address pins and a selectable 8- or 16- bit data bus for command and data input or output. 2.3 system diagram 3.0 functional overview 3.1 usb signaling speed sx2 operates at two of the three rates defined in the universal serial bus specification revision 2.0 , dated april 27, 2000:  full-speed, with a signaling bit rate of 12 mbits/s  high-speed, with a signaling bit rate of 480 mbits/s. sx2 does not support the low-speed signaling rate of 1.5 mbits/s. 3.2 buses sx2 features:  a selectable 8- or 16-bit bidirectional data bus  an address bus for selecting the fifo or command inter- face. 3.3 boot methods during the power-up sequence, internal logic of the sx2 checks for the presence of an i 2 c eeprom. [1,2] if it finds an eeprom, it will boot off the eeprom. when the presence of an eeprom is detected, the sx2 checks the value of first byte. if the first byte is found to be a 0xc4, the sx2 loads the next two bytes into the ifconfig and polar registers, respectively. if the fourth byte is also 0xc4, the sx2 enumerates using the descriptor in the eeprom, then signals to the external master when enumeration is complete via an enumok interrupt (section 3.4). if no eeprom is detected, the sx2 relies on the external master for the descriptors. once this descriptor information is receive from the external master, the sx2 will connect to the usb bus and enumerate. 3.3.1 eeprom organization the valid sequence of bytes in the eeprom are displayed below notes: 1. because there is no direct way to detect which eeprom type (single or double address) is connected, sx2 uses the eeprom address pins a2, a1, and a0 to determine whether to send out one or two bytes of address. single-byte address eeproms (24lc01, etc.) should be strapped to address 000 and double- byte eeproms (24lc64, etc.) should be strapped to address 001. 2. the scl and sda pins must be pulled up for this detection method to work properly, even if an eeprom is not connected. typica l pull-up values are 2.2k ? 10k ohms. windows/usb capable host usb connection cypress sx2 device cpu application ram/rom eeprom usb cable figure 2-2. example usb system diagram table 3-1. descriptor length set to 0x06: default enumeration byte index description 00xc4 1 ifconfig 2polar 30xc4 4 descriptor length (lsb):0x06 5 descriptor length (msb): 0x00 6 vid (lsb) 7 vid (msb) 8 pid (lsb) 9 pid (msb) 10 did (lsb) 11 did (msb) table 3-2. descriptor length not set to 0x06 byte index description 00xc4 1ifconfig 2polar 30xc4 4 descriptor length (lsb) 5 descriptor length (msb 6 descriptor[0] 7 descriptor[1] 8 descriptor[2]
cy7c6800 1 for for document #: 38-08013 rev. *e page 3 of 42  0xc4 : this initial byte tells the sx2 that this is a valid ee- prom with configuration information.  ifconfig : the ifconfig byte contains the settings for the ifconfig register. the ifconfig register bits are de- fined in section 7.1. if the external master requires an in- terface configuration different from the default, that interface can be specified by this byte.  polar : the polar byte contains the polarity of the fifo flag pin signals. the polar register bits are defined in section 7.3. if the external master requires signal polarity different from the default, the polarity can be specified by this byte.  descriptor : the descriptor byte determines if the sx2 loads the descriptor from the eeprom. if this byte = 0xc4, the sx2 will load the descriptor starting with the next byte. if this byte does not equal 0xc4, the sx2 will wait for de- scriptor information from the external master.  descriptor length : the descriptor length is within the next two bytes and indicate the length of the descriptor contained within the eeprom. the length is loaded least significant byte (lsb) first, then most significant byte (msb).  byte 7 starts descriptor information : the descriptor can be a maximum of 500 bytes. 3.3.2 default enumeration an optional default descriptor can be used to simplify enumer- ation. only the vendor id (vid), product id (pid), and device id (did) need to be loaded by the sx2 for it to enumerate with this default set-up. this information is either loaded from an eeprom in the case when the presence of an eeprom ( table 3-1 ) is detected, or the external master may simply load a vid, pid, and did when no eeprom is present. in this default enumeration, the sx2 uses the in-built default descriptor (refer to section 12.0). if the descriptor length loaded from the eeprom is 6, sx2 will load a vid, pid, and did from the eeprom and enumerate. the vid, pid, and did are loaded lsb, then msb. for example, if the vid, pid, and did are 0x0547, 0x1002, and 0x0001, respectively, then the bytes should be stored as:  0x47, 0x05, 0x02, 0x10, 0x01, 0x00. if there is no eeprom, sx2 will wait for the external master to provide the descriptor information. to use the default descriptor, the external master must write to the appropriate register (0x30) with descriptor length equal to 6 followed by the vid, pid, and did. refer to section 4.2 for further information on how the external master may load the values. the default descriptor enumerates four endpoints as listed in the following page:  endpoint 2: bulk out, 512 bytes in high-speed mode, 64 bytes in full-speed mode  endpoint 4: bulk out, 512 bytes in high-speed mode, 64 bytes in full-speed mode  endpoint 6: bulk in, 512 bytes in high-speed mode, 64 bytes in full-speed mode  endpoint 8: bulk in, 512 bytes in high-speed mode, 64 bytes in full-speed mode. the entire default descriptor is listed in section 12.0 of this data sheet. 3.4 interrupt system 3.4.1 architecture the sx2 provides an output signal that indicates to the external master that the sx2 has an interrupt condition, or that the data from a register read request is available. the sx2 has six interrupt sources: setup, ep0buf, flags, enumok, busactivity, and ready. each interrupt can be enabled or disabled by setting or clearing the corresponding bit in the intenable register. when an interrupt occurs, the int# pin will be asserted, and the corresponding bit will be set in the interrupt status byte. the external master reads the interrupt status byte by strobing slrd/sloe. this presents the interrupt status byte on the lower portion of the data bus (fd[7:0]). reading the interrupt status byte automatically clears the interrupt. only one interrupt request will occur at a time; the sx2 buffers multiple pending interrupts. if the external master has initiated a register read request, the sx2 will buffer interrupts until the external master has read the data. this insures that after a read sequence has begun, the next interrupt that is received from the sx2 will indicate that the corresponding data is available. following is a description of this intenable register. 3.4.2 intenable register bit definition bit 7: setup if this interrupt is enabled, and the sx2 receives a set-up packet from the usb host, the sx2 asserts the int# pin and sets bit 7 in the interrupt status byte. this interrupt only occurs if the set-up request is not one that the sx2 automatically handles. for complete details on how to handle the setup interrupt, refer to section 5.0 of this data sheet. bit 6: ep0buf if this interrupt is enabled, and the endpoint 0 buffer becomes available to the external master for read or write operations, the sx2 asserts the int# pin and sets bit 6 in the interrupt status byte. this interrupt is used for handling the data phase of a set-up request. for complete details on how to handle the ep0buf interrupt, refer to section 5.0 of this data sheet. bit 5: flags if this interrupt is enabled, and any out endpoint fifo?s state changes from empty to not-empty, the sx2 asserts the int# pin and sets bit 5 in the interrupt status byte. this is an alternate way to monitor the status of out endpoint fifos instead of using the flaga-flagd pins, and can be used to indicate when an out packet has been received from the host. bit 2: enumok if this interrupt is enabled and the sx2 receives a set_configuration request from the usb host, the sx2 asserts the int# pin and sets bit 2 in the interrupt status byte. this event signals the completion of the sx2 enumeration process. bit 1: busactivity if this interrupt is enabled, and the sx2 detects either an absence or resumption of activity on the usb bus, the sx2 asserts the int# pin and sets bit 1 in the interrupt status byte. this usually indicates that the usb host is either suspending
cy7c6800 1 for for document #: 38-08013 rev. *e page 4 of 42 or resuming or that a self-powered device has been plugged in or unplugged. if the sx2 is bus-powered, the external master must put the sx2 into a low-power mode after detecting a usb suspend condition to be usb-compliant. bit 0: ready if this interrupt is enabled, bit 0 in the interrupt status byte is set when the sx2 has powered up and performed a self-test. the external master should always wait for this interrupt before trying to read or write to the sx2 , unless an external eeprom with a valid descriptor is present. if an external eeprom with a valid descriptor is present, the enumok interrupt will occur inst ead of the ready interrupt after power up. a ready interrupt will also occur if the sx2 is awakened from a low-power mode via the wakeup pin. this ready interrupt indicates that the sx2 is ready for commands or data. although it is true that all interrupts will be buffered once a command read request has been initiated, in very rare condi- tions, there might be a situation when there is a pending interrupt already, when a read request is initiated by the external master. in this case it is the interrupt status byte that will be output when the external master asserts the slrd. so, a condition exists where the interrupt status data byte can be mistaken for the result of a command register read request. in order to get around this possible race condition, the first thing that the external master must do on getting an interrupt from the sx2 is check the status of the ready pin. if the ready is low at the time the int# was asserted, the data that will be output when the external master strobes the slrd is the interrupt status byte (not the actual data requested). if the ready pin is high at the time when the interrupt is asserted, the data output on strobing the slrd is the actual data byte requested by the external master. so it is important that the state of the ready pin be checked at the time the int# is asserted to ascertain the cause of the interrupt. 3.5 resets and wakeup 3.5.1 reset an input pin (reset#) resets the chip. the internal pll stabi- lizes after v cc has reached 3.3v. typically, an external rc network (r = 100 k ohms, c = 0.1 uf) is used to provide the reset# signal. the clock must be in a stable state for at least 200 us before the reset is released. 3.5.2 usb reset when the sx2 detects a usb reset condition on the usb bus, sx2 handles it like any other enumeration sequence. this means that sx2 will enumerate again and assert the enumok interrupt to let the external master know that it has enumerated. the external master will then be responsible for configuring the sx2 for the application. the external master should also check whether sx2 enumerated at high or full speed in order to adjust the epxpktlenh/l register values accordingly. the last initialization task is for the external master to flush all of the sx2 fifos. 3.5.3 wakeup the sx2 exits its low-power state when one of the following events occur:  usb bus signals a resume. the sx2 will assert a busac- tivity interrupt.  the external master asserts the wakeup pin. the sx2 will assert a ready interrupt [3] . 3.6 endpoint ram 3.6.1 size  control endpoint: 64 bytes: 1 64 bytes (endpoint 0).  fifo endpoints: 4096 bytes: 8 512 bytes (endpoint 2, 4, 6, 8). 3.6.2 organization  ep0?bidirectional endpoint 0, 64-byte buffer.  ep2, 4, 6, 8?eight 512-byte buffers, bulk, interrupt, or iso- chronous. ep2 and ep6 can be either double-, triple-, or quad-buffered. ep4 and ep8 can only be double-buffered. for high-speed endpoint configuration options, see figure 3-1 . note: 3. if the descriptor loaded is set for remote wakeup enabled and the host does a set feature remote wakeup enabled, then the sx2 logic will perform resume signalling after a wakeup interrupt.
cy7c6800 1 for for document #: 38-08013 rev. *e page 5 of 42 3.6.3 endpoint configurations (high-speed mode) endpoint 0 is the same for every configuration as it serves as the control endpoint. for endpoints 2, 4, 6, and 8, refer to figure 3-1 . endpoints 2, 4, 6, and 8 may be configured by choosing either:  one configuration from group a and one from group b  one configuration from group c. some example endpoint configurations are as follows.  ep2: 1024 bytes double-buffered, ep6: 512 bytes quad- buffered.  ep2: 512 bytes double-buffered, ep4: 512 bytes double- buffered, ep6: 512 bytes double-buffered, ep8: 512 bytes double buffered.  ep2: 1024 bytes quad-buffered. 3.6.4 default endpoint memory configuration at power-on-reset, the endpoint memories are configured as follows:  ep2: bulk out, 512 bytes/packet, 2x buffered.  ep4: bulk out, 512 bytes/packet, 2x buffered.  ep6: bulk in, 512 bytes/packet, 2x buffered.  ep8: bulk in, 512 bytes/packet, 2x buffered. 3.7 external interface the sx2 presents two interfaces to the external master. 1. a fifo interface through which ep2, 4, 6, and 8 data flows. 2. a command interface, which is used to set up the sx2 , read status, load descriptors, and access endpoint 0. 3.7.1 architecture the sx2 slave fifo architecture has eight 512-byte blocks in the endpoint ram that directly serve as fifo memories and are controlled by fifo control signals (ifclk, cs#, slrd, slwr, sloe, pktend, and fifoadr[2:0]). the sx2 command interface is used to set up the sx2 , read status, load descriptors, and access endpoint 0. the command interface has its own ready signal for gating writes, and an int# signal to indicate that the sx2 has data to be read, or that an interrupt event has occurred. the command interface uses the same control signals (ifclk, cs#, slrd, slwr, sloe, and fifoadr[2:0]) as the fifo interface, except for pktend. 3.7.2 control signals 3.7.2.1 fifoaddr lines the sx2 has three address pins that are used to select either the fifos or the command interface. the addresses corre- spond to the following table. 512 512 512 512 ep6 ep8 512 512 512 512 ep6 512 512 512 512 ep2 512 512 ep6 1024 1024 ep6 1024 1024 ep2 1024 1024 1024 ep2 1024 1024 512 512 ep8 ep0 in&out 64 64 64 64 64 64 512 512 ep8 group a group c 512 512 512 512 ep2 ep4 512 512 512 512 ep2 1024 1024 ep2 group b figure 3-1. endpoint configuration table 3-3. fifo address lines setting address/selection fifoadr2 fifoadr1 fifoadr0 fifo2 0 0 0 fifo4 0 0 1 fifo6 0 1 0 fifo8 0 1 1 command 1 0 0 reserved 1 0 1 reserved 1 1 0 reserved 1 1 1
cy7c6800 1 for for document #: 38-08013 rev. *e page 6 of 42 the sx2 accepts either an internally derived clock (30 or 48 mhz) or externally supplied clock (ifclk, 5-50 mhz), and slrd, slwr, sloe, pktend, cs#, fifoadr[2:0] signals from an external master. the interface can be selected for 8- or 16- bit operation by an internal configuration bit, and an output enable signal sloe enables the data bus driver of the selected width. the external master must ensure that the output enable signal is inactive when writing data to the sx2 . the interface can operate either asynchronously where the slrd and slwr signals act directly as strobes, or synchro- nously where the slrd and slwr act as clock qualifiers. the optional cs# signal will tristate the data bus and ignore slrd, slwr, pktend. the external master reads from out endpoints and writes to in endpoints, and reads from or writes to the command interface. 3.7.2.2 read: sloe and slrd in synchronous mode, the fifo pointer is incremented on each rising edge of ifclk while slrd is asserted. in asynchronous mode, the fifo pointer is incremented on each asserted-to-deasserted transition of slrd. sloe is a data bus driver enable. when sloe is asserted, the data bus is driven by the sx2 . 3.7.2.3 write: slwr in synchronous mode, data on the fd bus is written to the fifo (and the fifo pointer is incremented) on each rising edge of ifclk while slwr is asserted. in asynchronous mode, data on the fd bus is written to the fifo (and the fifo pointer is incremented) on each asserted-to-deasserted transition of slwr. 3.7.2.4 pktend pktend commits the current buffer to usb. to send a short in packet (one which has not been filled to max packet size determined by the value of pl[x:0] in epxpktlenh/l), the external master strobes the pktend pin. all these interface signals have a default polarity of low. in order to change the polarity of pktend pin, the master may write to the polar register anytime. in order to switch the polarity of the slwr/slrd/sloe, the master must set the appropriate bits 2, 3 and 4 respectively in the fifopinpolar register located at xdata space 0xe609. please note that the sx2 powers up with the polarities set to low. section 7.3 provides further information on how to access this register located at xdata space. 3.7.3 ifclk the ifclk pin can be configured to be either an input (default) or an output interface clock. bits ifconfig[7:4] define the behavior of the interface clock. to use the sx2 ?s internally- derived 30- or 48-mhz clock, set ifconfig.7 to 1 and set ifconfig.6 to 0 (30 mhz) or to 1 (48 mhz). to use an exter- nally supplied clock, set ifconfig.7=0 and drive the ifclk pin (5 mhz ? 50 mhz). the input or output ifclk signal can be inverted by setting ifconfig.4=1. 3.7.4 fifo access an external master can access the slave fifos either asynchronously or synchronously:  asynchronous?slrd, slwr, and pktend pins are strobes.  synchronous?slrd, slwr, and pktend pins are en- ables for the ifclk clock pin. an external master accesses the fifos through the data bus, fd [15:0]. this bus can be either 8- or 16-bits wide; the width is selected via the wordwide bit in the epxpktlenh/l registers. the data bus is bidirectional, with its output drivers controlled by the sloe pin. the fifoadr[2:0] pins select which of the four fifos is connected to the fd [15:0] bus, or if the command interface is selected. 3.7.5 fifo flag pins configuration the fifo flags are flaga, flagb, flagc, and flagd. these flagx pins report the status of the fifo selected by the fifoadr[2:0] pins. at reset, these pins are configured to report the status of the following:  flaga reports the status of the programmable flag.  flagb reports the status of the full flag.  flagc reports the status of the empty flag.  flagd defaults to the cs# function. the fifo flags can either be indexed or fixed. fixed flags report the status of a particular fifo regardless of the value on the fifoadr [2:0] pins. indexed flags report the status of the fifo selected by the fifoadr [2:0]pins. [4] 3.7.6 default fifo programmable flag set-up by default, flaga is the programmable flag (pf) for the endpoint being pointed to by the fifoadr[2:0] pins. for ep2 and ep4, the default endpoint configuration is bulk, out, 512, 2x, and the pf pin asserts when the entire fifo has greater than/equal to 512 bytes. for ep6 and ep8, the default endpoint configuration is bulk, in, 512, 2x, and the pf pin asserts when the entire fifo has less than/equal to 512 bytes. in other words, ep6/8 report a half-empty state, and ep2/4 report a half-full state. the polarity of the programmable flag is set to active low and cannot be altered. 3.7.7 fifo programmable flag (pf) set-up each fifo?s programmable-level flag (pf) asserts when the fifo reaches a user-defined fullness threshold. that threshold is configured as follows: 1. for out packets: the threshold is stored in pfc12:0. the pf is asserted when the number of bytes in the entire fifo is less than/equal to (decis = 0) or greater than/equal to (decis = 1) the threshold. 2. for in packets, with pktstat = 1: the threshold is stored in pfc9:0. the pf is asserted when the number of bytes written into the current packet in the fifo is less than/equal to (decis = 0) or greater than/equal to (decis = 1) the threshold. 3. for in packets, with pktstat = 0: the threshold is stored in two parts: pkts2:0 holds the number of committed pack- ets, and pfc9:0 holds the number of bytes in the current packet. the pf is asserted when the fifo is at or less full than (decis = 0), or at or more full than (decis = 1), the threshold.
cy7c6800 1 for for document #: 38-08013 rev. *e page 7 of 42 3.7.8 command protocol an address of [1 0 0] on fifoadr [2:0] will select the command interface. the command interface is used to write to and read from the sx2 registers and the endpoint 0 buffer, as well as the descriptor ram. command read and write trans- actions occur over fd[7:0] only. each byte written to the sx2 is either an address or a data byte, as determined by bit7. if bit7 = 1, then the byte is considered an address byte. if bit7 = 0, then the byte is considered a data byte. if bit7 = 1, then bit6 determines whether the address byte is a read request or a write request. if bit6 = 1, then the byte is considered a read request. if bit6 = 0 then the byte is considered a write request. bits [5:0] hold the register address of the request. the format of the command address byte is shown in table 3-4 . each write request is followed by two or more data bytes. if another address byte is received before both data bytes are received, the sx2 ignores the first address and any incomplete data transfers. the format for the data bytes is shown in table 3-5 and table 3-6 . some registers take a series of bytes. each byte is transferred using the same protocol. the first command data byte contains the upper nibble of data, and the second command byte contains the lower nibble of data. 3.7.8.1 write request example prior to writing to a register, two conditions must be met: fifoadr[2:0] must hold [1 0 0], and the ready line must be high. the external master should not initiate a command if the ready pin is not in a high state. example : to write the byte <10110000> into the ifconfig register (0x01), first send a command address byte as follows.  the first bit signifies an address transfer.  the second bit signifies that this is a write command.  the next six bits represent the register address (000001 binary = 0x01 hex). once the byte has been received the sx2 pulls the ready pin low to inform the external master not to send any more information. when the sx2 is ready to receive the next byte, the sx2 pulls the ready pin high again. this next byte, the upper nibble of the data byte, is written to the sx2 as follows.  the first bit signifies that this is a data transfer.  the next three are don?t care bits.  the next four bits hold the upper nibble of the transferred byte. once the byte has been received the sx2 pulls the ready pin low to inform the external master not to send any more information. when the sx2 is ready to receive the next byte, the sx2 pulls the ready pin high again. this next byte, the lower nibble of the data byte is written to the sx2 . at this point the entire byte <10110000> has been transferred to register 0x01 and the write sequence is complete. 3.7.8.2 read request example the read cycle is simpler than the write cycle. the read cycle consists of a read request from the external master to the sx2 . for example, to read the contents of register 0x01, a command address byte is written to the sx2 as follows. when the data is ready to be read, the sx2 asserts the int# pin to tell the external master that the data it requested is waiting on fd[7:0]. [5] note: 4. in indexed mode, the value of the flagx pins is indeterminate except when addressing a fifo (fifoadr[2:0]={000,001,010,011}). 5. an important note: once the sx2 receives a read request, the sx2 allocates the interrupt line solely for the read request. if one of the six interrupt sources described in section 3.4 is asserted, the sx2 will buffer that interrupt until the read request completes. table 3-4. command address byte address/ data# read/ write# a5 a4 a3 a2 a1 a0 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 table 3-5. command data byte one bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 x x x d7 d6 d5 d4 table 3-6. command data byte two bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 0 x x x d3 d2 d1 d0 table 3-7. command address write byte address/ data# read/ write# a5 a4 a3 a2 a1 a0 1 0000001 table 3-8. command data write byte one address/ data# don?t care don?t care don?t care d7 d6 d5 d4 0 xxx1 011 table 3-9. command data write byte two address/ data# don?t care don?t care don?t care d3 d2 d1 d0 0 xxx0000 table 3-10. command address read byte address/ data# read/ write# a5 a4 a3 a2 a1 a0 1 1000001
cy7c6800 1 for for document #: 38-08013 rev. *e page 8 of 42 4.0 enumeration the sx2 has two modes of enumeration. the first mode is automatic through eeprom boot load, as described in section 3.3. the second method is a manual load of the descriptor or vid, pid, and did as described below. 4.1 standard enumeration the sx2 has 500 bytes of descriptor ram into which the external master may write its descriptor. the descriptor ram is accessed through register 0x30. to load a descriptor, the external master does the following:  initiate a write request to register 0x30.  write two bytes (four command data transfers) that define the length of the entire descriptor about to be transferred. the lsb is written first, followed by the msb. [6]  write the descriptor, one byte at a time until complete. [6] note: the register address is only written once. after the entire descriptor has been transferred, the sx2 will float the pull-up resistor connected to d+, and parse through the descriptor to locate the individual descriptors. after the sx2 has parsed the entire descriptor, the sx2 will connect the pull-up resistor and enumerate automatically. when enumer- ation is complete, the sx2 will notify the external master with an enumok interrupt. the format and order of the descriptor should be as follows (see section 12.0 for an example):  device.  device qualifier.  high-speed configuration, high-speed interface, high- speed endpoints.  full-speed configuration, full-speed interface, full-speed endpoints.  string. 4.2 default enumeration the external master may simply load a vid, pid, and did and use the default descriptor built into the sx2 . to use the default descriptor, the descriptor length described above must equal 6. after the external master has written the length, the vid, pid, and did must be written lsb, then msb. for example, if the vid, pid, and did are 0x04b4, 0x1002, and 0x0001 respectively, then the external master does the following:  initiates a write request to register 0x30.  writes two bytes (four command data transfers) that define the length of the entire descriptor about to be transferred. in this case, the length is always six.  writes the vid, pid, and did bytes: 0xb4, 0x04, 0x02, 0x10, 0x01, 0x00 (in nibble format per the command protocol). the default descriptor is listed in section 12.0. the default descriptor can be used as a starting point for a custom descriptor. 5.0 endpoint 0 the sx2 will automatically respond to usb chapter 9 requests without any external master intervention. if the sx2 receives a request to which it cannot respond automatically, the sx2 will notify the external master. the external master then has the choice of responding to the request or stalling. after the sx2 receives a set-up packet to which it cannot respond automatically, the sx2 will assert a setup interrupt. after the external master reads the interrupt status byte to determine that the interrupt source was the setup interrupt, it can initiate a read request to the setup register, 0x32. when the sx2 sees a read request for the setup register, it will present the first byte of set-up data to the external master. each additional read request will present the next byte of set- up data, until all eight bytes have been read. the external master can stall this request at this or any other time. to stall a request, the external master initiates a write request for the setup register, 0x32, and writes any non-zero value to the register. if this set-up request has a data phase, the sx2 will then interrupt the external master with an ep0buf interrupt when the buffer becomes available. the sx2 determines the direction of the set-up request and interrupts when either:  in: the endpoint 0 buffer becomes available to write to, or  out: the endpoint 0 buffer receives a packet from the usb host. for an in set-up transaction, the external master can write up to 64 bytes at a time for the data phase. the steps to write a packet are as follows: 1. wait for an ep0buf interrupt, indicating that the buffer is available. 2. initiate a write request for register 0x31. 3. write one data byte. 4. repeat steps 2 and 3 until either all the data or 64 bytes have been written, whichever is less. 5. write the number of bytes in this packet to the byte count register, 0x33. to send more than 64 bytes, the process is repeated. the sx2 internally stores the length of the data phase that was specified in the wlength field (bytes 6,7) of the set-up packet. to send less than the requested amount of data, the external master writes a packet that is less than 64 bytes, or if a multiple of 64, the external master follows the data with a zero-length packet. when the sx2 sees a short or zero-length packet, it will complete the set-up transfer by automatically completing the handshake phase. the sx2 will not allow more data than the wlength field specified in the set-up packet. note: the pktend pin does not apply to endpoint 0. the only way to send a short or zero length packet is by writing to the byte count register with the appropriate value. note: 6. these and all other data bytes must conform to the command protocol.
cy7c6800 1 for for document #: 38-08013 rev. *e page 9 of 42 for an out set-up transaction, the external master can read each packet received from the usb host during the data phase. the steps to read a packet are as follows: 1. wait for an ep0buf interrupt, indicating that a packet was received from the usb host into the buffer. 2. initiate a read request for the byte count register, 0x33. this indicates the amount of data received from the host. 3. initiate a read request for register 0x31. 4. read one byte. 5. repeat steps 3 and 4 until the number of bytes specified in the byte count register has been read. to receive more than 64 bytes, the process is repeated. the sx2 internally stores the length of the data phase that was specified in the wlength field of the set-up packet (bytes 6,7). when the sx2 sees that the specified number of bytes have been received, it will complete the set-up transfer by automat- ically completing the handshake phase. if the external master does not wish to receive the entire transfer, it can stall the transfer. if the sx2 receives another set-up packet before the current transfer has completed, it will interrupt the external master with another setup interrupt. if the sx2 receives a set-up packet with no data phase, the external master can accept the packet and complete the handshake phase by writing zero to the byte count register. the sx2 automatically responds to all usb standard requests covered in chapter 9 of the usb 2.0 specification except the set/clear feature endpoint requests. when the host issues a set feature or a clear feature request, the sx2 will trigger a setup interrupt to the external master. the usb spec requires that the device respond to the set endpoint feature request by doing the following:  set the stall condition on that endpoint. the usb spec requires that the device respond to the clear endpoint feature request by doing the following:  reset the data toggle for that endpoint  clear the stall condition of that endpoint. the register that is used to reset the data toggle togctl (located at xdata location 0xe683) is not an index register that can be addressed by the command protocol presented in section 3.7.8. the following section provides further infor- mation on this register bits and how to reset the data toggle accordingly using a different set of command protocol sequence. 5.1 resetting data toggle following is the bit definition of the togctl register: bit 7: q, data toggle value q=0 indicates data0 and q=1 indicates data1, for the endpoint selected by the i/o and ep3:0 bits. write the endpoint select bits (io and ep3:0), before reading this value. bit 6: s, set data toggle to data1 after selecting the desired endpoint by writing the endpoint select bits (io and ep3:0), set s=1 to set the data toggle to data1. the endpoint selection bits should not be changed while this bit is written. bit 5: r, set data toggle to data0 set r=1 to set the data toggle to data0. the endpoint selection bits should not be changed while this bit is written. bit 4: io, select in or out endpoint set this bit to select an endpoint direction prior to setting its r or s bit. io=0 selects an out endpoint, io = 1 selects an in endpoint. bit 3-0: ep3:0, select endpoint set these bits to select an endpoint prior to setting its r or s bit. valid values are 0, 1, 2, , 6, and 8. a two-step process is employed to clear an endpoint data toggle bit to 0. first, write to the togctl register with an endpoint address (ep3:ep0) plus a direction bit (io). keeping the endpoint and direction bits the same, write a ?1? to the r (reset) bit. for example, to clear the data toggle for ep6 configured as an ?in? endpoint, write the following values sequentially to togctl: 00010110b 00110110b following is the sequence of events that the master should perform to set this register to 0x16: (1) send low byte of the register (0x83)  command address write of address 0x3a  command data write of upper nibble of the low byte of register address (0x08)  command data write of lower nibble of the low byte of register address (0x03) (2) send high byte of the register (0xe6)  command address write of address 0x3b  command data write of upper nibble of the high byte of register address (0x0e)  command data write of lower nibble of the high byte of register address (0x06) (3) send the actual value to write to the register register (in this case 0x16)  command address write of address0x3c  command data write of upper nibble of the high byte of register address (0x01)  command data write of lower nibble of the high byte of register address (0x06) the same command sequence needs to be followed to set togctl register to 0x36. the same command protocol sequence can be used to reset the data toggle for the other endpoints. in order to read the status of this register, the external master must do the following sequence of events: (1) send low byte of the register (0x83)  command address write of 0x3a togctl 0xe683 bit # 7 6 5 4 3 2 1 0 bit name q s r i/o ep3 ep2 ep1 ep0 read/write r w w r/w r/w r/w r/w r/w default 00110010
cy7c6800 1 for for document #: 38-08013 rev. *e page 10 of 42  command data write of upper nibble of the low byte of register address (0x08)  command data write of lower nibble of the low byte of register address (0x03) (2) send high byte of the register (0xe6)  command address write of address 0x3b  command data write of upper nibble of the high byte of register address (0x0e)  command data write of lower nibble of the high byte of register address (0x06) (3) get the actual value from the togctl register (0x16)  command address read of 0x3c 6.0 pin assignments 6.1 56-pin ssop note: 7. a * denotes programmable polarity. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 fd13 fd14 fd15 gnd nc vcc gnd *slrd *slwr avcc xtalout xtalin agnd vcc dplus dminus gnd vcc gnd *ifclk reserved scl sda vcc fd0 fd1 fd2 fd3 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 fd12 fd11 fd10 fd9 fd8 *wakeup vcc reset# gnd *flagd/cs# *pktend fifoadr1 fifoadr0 fifoadr2 *sloe int# ready vcc *flagc *flagb *flaga gnd vcc gnd fd7 fd6 fd5 fd4 cy7c68001 56-pin ssop figure 6-1. cy7c68001 56-pin ssop pin assignment [7]
cy7c6800 1 for for document #: 38-08013 rev. *e page 11 of 42 6.2 56-pin qfn cy7c68001 56-pin qfn gnd vcc gnd dminus * slw r dplus vcc agnd * slrd avcc xtalin xtalout * ifclk reserved nc gnd fd15 fd14 * wakeup fd13 fd12 fd11 vcc fd8 fd10 fd9 vcc gnd vcc fd0 fd1 fd2 vcc fd3 fd4 fd5 gnd gnd fd6 fd7 sda scl 17 18 19 20 27 21 22 23 28 26 24 25 16 15 54 53 52 51 50 49 48 45 47 46 55 56 * flagc vcc ready int# gnd * sloe fifoadr2 fifoadr0 reset# * flagd/cs# fifoadr1 * pktend * flagb * flaga 12 11 10 9 2 8 7 6 1 3 5 4 13 14 31 32 33 34 41 35 36 37 42 40 38 39 30 29 44 43 figure 6-2. cy7c68001 56-pin qfn assignment [7]
cy7c6800 1 for for document #: 38-08013 rev. *e page 12 of 42 6.3 cy7c68001 pin definitions table 6-1. sx2 pin definitions qfn pin ssop pin name type default description 3 10 avcc power n/a analog v cc . this signal provides power to the analog section of the chip. 6 13 agnd power n/a analog ground . connect to ground with as short a path as possible. 9 16 dminus i/o/z z usb d? signal . connect to the usb d? signal. 815dplus i/o/z z usb d+ signal . connect to the usb d+ signal. 42 49 reset# input n/a active low reset . resets the entire chip. this pin is normally tied to v cc through a 100k resistor, and to gnd through a 0.1- f capacitor. 5 12 xtalin input n/a crystal input . connect this signal to a 24-mhz parallel-resonant, fundamental mode crystal and 20-pf capacitor to gnd. it is also correct to drive xtalin with an external 24-mhz square wave derived from another clock source. 4 11 xtalout output n/a crystal output . connect this signal to a 24-mhz parallel-resonant, fundamental mode crystal and 20-pf capacitor to gnd. if an external clock is used to drive xtalin, leave this pin open. 54 5 nc output o no connect . this pin must be left unconnected. 33 40 ready output l ready is an output-only ready that gates external command reads and writes. active high. 34 41 int# output h int# is an output-only external interrupt signal. active low. 35 42 sloe input i sloe is an input-only output enable with programmable polarity (polar.4) for the slave fifos connected to fd[7:0] or fd[15:0]. 36 43 fifoadr2 input i fifoadr2 is an input-only address select for the slave fifos connected to fd[7:0] or fd[15:0]. 37 44 fifoadr0 input i fifoadr0 is an input-only address select for the slave fifos connected to fd[7:0] or fd[15:0]. 38 45 fifoadr1 input i fifoadr1 is an input-only address select for the slave fifos connected to fd[7:0] or fd[15:0]. 39 46 pktend input i pktend is an input-only packet end with programmable polarity (polar.5) for the slave fifos connected to fd[7:0] or fd[15:0]. 40 47 flagd/c s# cs#:i flagd:o i flagd is a programmable slave-fifo output status flag signal. cs# is a master chip select (default). 18 25 fd[0] i/o/z i fd[0] is the bidirectional fifo/command data bus. 19 26 fd[1] i/o/z i fd[1] is the bidirectional fifo/command data bus. 20 27 fd[2] i/o/z i fd[2] is the bidirectional fifo/command data bus. 21 28 fd[3] i/o/z i fd[3] is the bidirectional fifo/command data bus. 22 29 fd[4] i/o/z i fd[4] is the bidirectional fifo/command data bus. 23 30 fd[5] i/o/z i fd[5] is the bidirectional fifo/command data bus. 24 31 fd[6] i/o/z i fd[6] is the bidirectional fifo/command data bus. 25 32 fd[7] i/o/z i fd[7] is the bidirectional fifo/command data bus. 45 52 fd[8] i/o/z i fd[8] is the bidirectional fifo data bus. 46 53 fd[9] i/o/z i fd[9] is the bidirectional fifo data bus. 47 54 fd[10] i/o/z i fd[10] is the bidirectional fifo data bus. 48 55 fd[11] i/o/z i fd[11] is the bidirectional fifo data bus. 49 56 fd[12] i/o/z i fd[12] is the bidirectional fifo data bus. 50 1 fd[13] i/o/z i fd[13] is the bidirectional fifo data bus. 51 2 fd[14] i/o/z i fd[14] is the bidirectional fifo data bus. 52 3 fd[15] i/o/z i fd[15] is the bidirectional fifo data bus.
cy7c6800 1 for for document #: 38-08013 rev. *e page 13 of 42 1 8 slrd input n/a slrd is the input-only read strobe with programmable polarity (polar.3) for the slave fifos connected to fd[7:0] or fd[15:0]. 2 9 slwr input n/a slwr is the input-only write strobe with programmable polarity (polar.2) for the slave fifos connected to fd[7:0] or fd[15:0]. 29 36 flaga output h flaga is a programmable slave-fifo output status flag signal. defaults to pf for the fifo selected by the fifoadr[2:0] pins. 30 37 flagb output h flagb is a programmable slave-fifo output status flag signal. defaults to full for the fifo selected by the fifoadr[2:0] pins. 31 38 flagc output h flagc is a programmable slave-fifo output status flag signal. defaults to empty for the fifo selected by the fifoadr[2:0] pins. 13 20 ifclk i/o/z z interface clock , used for synchronously clocking data into or out of the slave fifos. ifclk also serves as a timing reference for all slave fifo control signals. when using the internal clock reference (ifconfig.7=1) the ifclk pin can be configured to output 30/48 mhz by setting bits ifconfig.5 and ifconfig.6. ifclk may be inverted by setting the bit ifconfig.4=1. programmable polarity. 14 21 reserved input n/a reserved . must be connected to ground. 44 51 wakeup input n/a usb wakeup . if the sx2 is in suspend, asserting this pin starts up the oscillator and interrupts the sx2 to allow it to exit the suspend mode. during normal operation, holding wakeup asserted inhibits the sx2 chip from suspending. this pin has programmable polarity (polar.7). 15 22 scl od z i 2 c clock . connect to v cc with a 2.2k-10 k ohms resistor, even if no i 2 c eeprom is attached. 16 23 sda od z i 2 c data . connect to v cc with a 2.2k-10 k ohms resistor, even if no i 2 c eeprom is attached. 55 6 v cc power n/a v cc . connect to 3.3v power source. 714 v cc power n/a v cc . connect to 3.3v power source. 11 18 v cc power n/a v cc . connect to 3.3v power source. 17 24 v cc power n/a v cc . connect to 3.3v power source. 27 34 v cc power n/a v cc . connect to 3.3v power source. 32 39 v cc power n/a v cc . connect to 3.3v power source. 43 50 v cc power n/a v cc . connect to 3.3v power source. 53 4 gnd ground n/a connect to ground . 56 7 gnd ground n/a connect to ground . 10 17 gnd ground n/a connect to ground . 12 19 gnd ground n/a connect to ground . 26 33 gnd ground n/a connect to ground . 28 35 gnd ground n/a connect to ground . 41 48 gnd ground n/a connect to ground . table 6-1. sx2 pin definitions (continued) qfn pin ssop pin name type default description
cy7c6800 1 for for document #: 38-08013 rev. *e page 14 of 42 7.0 register summary table 7-1. sx2 register summary hex size name description d7 d6 d5 d4 d3 d2 d1 d0 default access general configuration 01 1 ifconfig interface configuration ifclksrc 3048mhz ifclkoe ifclkpol async standby flagd/cs# discon 11001001 bbbbbbbb 02 1 flagsab fifo flaga and flagb assign- ments flagb3 flagb2 flagb1 flagb0 flaga3 flaga2 flaga1 flaga0 00000000 bbbbbbbb 03 1 flagscd fifo flagc and flagd assign- ments flagd3 flagd2 flagd1 flagd0 flagc3 flagc2 flagc1 flagc0 00000000 bbbbbbbb 04 1 polar fifo polarities wupol 0 pktend sloe slrd slwr ef ff 00000000 bbbrrrbb 05 1 revid chip revision major major major major minor minor minor minor xxxxxxxx rrrrrrrr endpoint configuration [8] 06 1 ep2cfg endpoint 2 configuration valid dir type1 type0 size stall buf1 buf0 10100010 bbbbbbbb 07 1 ep4cfg endpoint 4 configuration valid dir type1 type0 0 stall 0 0 10100000 bbbbrbrr 08 1 ep6cfg endpoint 6 configuration valid dir type1 type0 size stall buf1 buf0 11100010 bbbbbbbb 09 1 ep8cfg endpoint 8 configuration valid dir type1 type0 0 stall 0 0 11100000 bbbbrbrr 0a 1 ep2pktlenh endpoint 2 packet length h infm1 oep1 zerolen word- wide 0 pl10 pl9 pl8 00110010 bbbbbbbb 0b 1 ep2pktlenl endpoint 2 packet length l (in only) pl7 pl6 pl5 pl4 pl3 pl2 pl1 pl0 00000000 bbbbbbbb 0c 1 ep4pktlenh endpoint 4 packet length h infm1 oep1 zerolen word- wide 0 0 pl9 pl8 00110010 bbbbbbbb 0d 1 ep4pktlenl endpoint 4 packet length l (in only) pl7 pl6 pl5 pl4 pl3 pl2 pl1 pl0 00000000 bbbbbbbb 0e 1 ep6pktlenh endpoint 6 packet length h infm1 oep1 zerolen word- wide 0 pl10 pl9 pl8 00110010 bbbbbbbb 0f 1 ep6pktlenl endpoint 6 packet length l (in only) pl7 pl6 pl5 pl4 pl3 pl2 pl1 pl0 00000000 bbbbbbbb 10 1 ep8pktlenh endpoint 8 packet length h infm1 oep1 zerolen word- wide 0 0 pl9 pl8 00110010 bbbbbbbb 11 1 ep8pktlenl endpoint 8 packet length l (in only) pl7 pl6 pl5 pl4 pl3 pl2 pl1 pl0 00000000 bbbbbbbb 12 1 ep2pfh ep2 programmable flag h decis pktstat in: pkts[2] out:pfc12 in: pkts[1] out:pfc11 in: pkts[0] out:pfc10 0 pfc9 pfc8 10001000 bbbbbbbb 13 1 ep2pfl ep2 programmable flag l pfc7 pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 00000000 bbbbbbbb 14 1 ep4pfh ep4 programmable flag h decis pktstat 0 in: pkts[1] out:pfc10 in: pkts[0] out:pfc9 0 0 pfc8 10001000 bbbbbbbb 15 1 ep4pfl ep4 programmable flag l pfc7 pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 00000000 bbbbbbbb 16 1 ep6pfh ep6 programmable flag h decis pktstat in: pkts[2] out:pfc12 in: pkts[1] out:pfc11 in: pkts[0] out:pfc10 0 pfc9 pfc8 00001000 bbbbbbbb 17 1 ep6pfl ep6 programmable flag l pfc7 pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 00000000 bbbbbbbb 18 1 ep8pfh ep8 programmable flag h decis pktstat 0 in: pkts[1] out:pfc10 in: pkts[0] out:pfc9 0 0 pfc8 00001000 bbbbbbbb 19 1 ep8pfl ep8 programmable flag l pfc7 pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 00000000 bbbbbbbb 1a 1 ep2isoinpkts ep2 (if iso) in packets per frame (1-3) 0 0 0 0 0 0 inppf1 inppf0 00000001 bbbbbbbb 1b 1 ep4isoinpkts ep4 (if iso) in packets per frame (1-3) 0 0 0 0 0 0 inppf1 inppf0 00000001 bbbbbbbb 1c 1 ep6isoinpkts ep6 (if iso) in packets per frame (1-3) 0 0 0 0 0 0 inppf1 inppf0 00000001 bbbbbbbb 1d 1 ep8isoinpkts ep8 (if iso) in packets per frame (1-3) 0 0 0 0 0 0 inppf1 inppf0 00000001 bbbbbbbb flags 1e 1 ep24flags endpoints 2,4 fifo flags 0 ep4pf ep4ef ep4ff 0 ep2pf ep2ef ep2ff 00100010 rrrrrrrr 1f 1 ep68flags endpoints 6,8 fifo flags 0 ep8pf ep8ef ep8ff 0 ep6pf ep6ef ep6ff 01100110 rrrrrrrr inpktend/flush [9] 20 1 inpk- tend/flush force packet end / flush fifos fifo8 fifo6 fifo4 fifo2 ep3 ep2 ep1 ep0 00000000 wwwwww- ww usb configuration 2a 1 usbframeh usb frame count h 0 0 0 0 0 fc10 fc9 fc8 xxxxxxxx rrrrrrrr 2b 1 usbframel usb frame count l fc7 fc6 fc5 fc4 fc3 fc2 fc1 fc0 xxxxxxxx rrrrrrrr 2c 1 microframe microframe count, 0-7 0 0 0 0 0 mf2 mf1 mf0 xxxxxxxx rrrrrrrr 2d 1 fnaddr usb function address hsgrant fa6 fa5 fa4 fa3 fa2 fa1 fa0 00000000 rrrrrrrr interrupts 2e 1 intenable interrupt enable setup ep0buf flags 1 1 enumok busactivity ready 11111111 bbbbbbbb descriptor 30 500 desc descriptor ram d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxx wwwwww- ww endpoint 0 31 64 ep0buf endpoint 0 buffer d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxx bbbbbbbb 32 8/1 setup endpoint 0 set-up data / stall d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxx bbbbbbbb 33 1 ep0bc endpoint 0 byte count d7 d6 d5 d4 d3 d2 d1 d0 xxxxxxxx bbbbbbbb un-indexed register control 3a 1 un-indexed register low byte pointer a7 a6 a5 a4 a3 a2 a1 a0 3b 1 un-indexed register high byte point- er a7 a6 a5 a4 a3 a2 a1 a0 3c 1 un-indexed register data d7 d6 d5 d4 d3 d2 d1 d0 address un-indexed registers in xdata space 0xe609 fifopinpolar fifo interface pins polarity 0 0 pktend sloe slrd slwr ef ff 00000000 rrbbbbbb 0xe683 togctl data toggle control q s r io ep3 ep2 ep1 ep0 xxxxxxxx rbbbbbbb notes: 8. please note that the sx2 was not designed to support dynamic modification of these endpoint configuration registers. if your applications need the abil ity to change endpoint configurations after the device has already enumerated with a specific configuration, please expect some delay in being able to access the fifos after changing the configuration. for example, after writing to ep2pktlenh, you must wait for at least 35 us measured fro m the time the ready signal is asserted before writing to the fifo. this delay time varies for different registers and is not characterized, because the sx2 was not designed for this dynamic change of endpoint configuration registers. 9. please note that the sx2 was not designed to support dynamic modification of the inpktend/flush register. if your applications need the ability to change endpoint configurations or access the inpktend register after the device has already enumerated with a specific configuration, please expect some delay in being able to access the fifos after changing this register. after writing to inpktend/flush, you must wait for at least 85 us measured from the time the ready signal is asserted before writing to the fifo. this delay time varies for different registers and is not characterized, b ecause the sx2 was not designed for this dynamic change of endpoint configuration registers
cy7c6800 1 for for document #: 38-08013 rev. *e page 15 of 42 7.1 ifconfig register 0x01 7.1.1 bit 7: ifclksrc this bit selects the clock source for the fifos. if ifclksrc = 0, the external clock on the ifclk pin is selected. if ifclksrc = 1 (default), an internal 30 or 48 mhz clock is used. 7.1.2 bit 6: 3048mhz this bit selects the internal fifo clock frequency. if 3048mhz = 0, the internal clock frequency is 30 mhz. if 3048mhz = 1 (default), the internal clock frequency is 48 mhz. 7.1.3 bit 5: ifclkoe this bit selects if the ifclk pin is driven. if ifclkoe = 0 (default), the ifclk pin is floated. if ifclkoe = 1, the ifclk pin is driven. 7.1.4 bit 4: ifclkpol this bit controls the polarity of the ifclk signal.  when ifclkpol=0, the clock has the polarity shown in all the timing diagrams in this data sheet (rising edge is the activating edge).  when ifclkpol=1, the clock is inverted (in some cases may help with satisfying data set-up times). 7.1.5 bit 3: async this bit controls whether the fifo interface is synchronous or asynchronous. when async = 0, the fifos operate synchro- nously. in synchronous mode, a clock is supplied either inter- nally or externally on the ifclk pin, and the fifo control signals function as read and write enable signals for the clock signal. when async = 1 (default), the fifos operate asynchro- nously. no clock signal input to ifclk is required, and the fifo control signals function directly as read and write strobes. 7.1.6 bit 2: standby this bit instructs the sx2 to enter a low-power mode. when standby=1, the sx2 will enter a low-power mode by turning off its oscillator. the external master should write this bit after it receives a bus activity interrupt (indicating that the host has signaled a usb suspend condition). if sx2 is disconnected from the usb bus, the external master can write this bit at any time to save power. once suspended, the sx2 is awakened either by resumption of usb bus activity or by assertion of its wakeup pin. 7.1.7 bit 1: flagd/cs# this bit controls the function of the flagd/cs# pin. when flagd/cs# = 0 (default), the pin operates as a slave chip select. if flagd/cs# = 1, the pin operates as flagd. 7.1.8 bit 0: discon this bit controls whether the internal pull-up resistor connected to d+ is pulled high or floating. when discon = 1 (default), the pull-up resistor is floating simulating a usb unplug. when discon=0, the pull-up resistor is pulled high signaling a usb connection. 7.2 flagsab/flagscd registers 0x02/0x03 the sx2 has four fifo flags output pins: flaga, flagb, flagc, flagd. ifconfig 0x01 bit # 7 6 5 4 3 2 1 0 bit name ifclksrc 3048mhz ifclkoe ifclkpol async standby flagd/cs# discon read/write r/w r/w r/w r/w r/w r/w r/w r/w default 11001001 flagsab 0x02 bit # 7 6 5 4 3 2 1 0 bit name flagb3 flagb2 flagb1 flagb0 flaga3 flaga2 flaga1 flaga0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00000000 flagscd 0x03 bit # 7 6 5 4 3 2 1 0 bit name flagd3 flagd2 flagd1 flagd0 flagc3 flagc2 flagc1 flagc0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00000000
cy7c6800 1 for for document #: 38-08013 rev. *e page 16 of 42 these flags can be programmed to represent various fifo flags using four select bits for each fifo. the 4-bit coding for all four flags is the same, as shown in the following table . for the default (0000) selection, the four fifo flags are fixed- function as shown in the first table entry; the input pins fifoadr[2:0] select to which of the four fifos the flags correspond. these pins are decoded as shown in table 3-3 . the other (non-zero) values of flagx[3:0] allow the designer to independently configure the four flag outputs flaga- flagd to correspond to any flag-programmable, full, or empty-from any of the four endpoint fifos. this allows each flag to be assigned to any of the four fifos, including those not currently selected by the fifoadr [2:0] pins. for example, the external master could be filling the ep2in fifo with data while also checking the empty flag for the ep4out fifo. 7.3 polar register 0x04 this register controls the polarities of fifo pin signals and the wakeup pin. 7.3.1 bit 7: wupol this flag sets the polarity of the wakeup pin. if wupol = 0 (default), the polarity is active low. if wupol=1, the polarity is active high. 7.3.2 bit 5: pktend this flag selects the polarity of the pktend pin. if pktend = 0 (default), the polarity is active low. if pktend = 1, the polarity is active high. 7.3.3 bit 4: sloe this flag selects the polarity of the sloe pin. if sloe = 0 (default), the polarity is active low. if sloe = 1, the polarity is active high. this bit can only be changed by using the eeprom configuration load. 7.3.4 bit 3: slrd this flag selects the polarity of the slrd pin. if slrd = 0 (default), the polarity is active low. if slrd = 1, the polarity is active high. this bit can only be changed by using the eeprom configuration load. 7.3.5 slwr bit 2 this flag selects the polarity of the slwr pin. if slwr = 0 (default), the polarity is active low. if slwr = 1, the polarity is active high. this bit can only be changed by using the eeprom configuration load. 7.3.6 ef bit 1 this flag selects the polarity of the ef pin (flaga/b/c/d). if ef = 0 (default), the ef pin is pulled low when the fifo is empty. if ef = 1, the ef pin is pulled high when the fifo is empty. 7.3.7 ff bit 0 this flag selects the polarity of the ff pin (flaga/b/c/d). if ff = 0 (default), the ff pin is pulled low when the fifo is full. if ff = 1, the ff pin is pulled high when the fifo is full. note that bits 2(slwr), 3(slrd) and 4 (sloe) are read only bits and cannot be set by the external master or the eeprom. on power-up, these bits are set to active low polarity. in order to change the polarity after the device is powered-up, the external master must access the previously undocumented (un-indexed) sx2 register located at xdata space at 0xe609. this register has exact same bit definition as the polar register except that bits 2, 3 and 4 defined as slwr, slrd and sloe respectively are read/write bits. following is the sequence of events that the master should perform for setting this register to 0x1c (setting bits 4,3,and 2): 1) send low byte of the register (0x09)  command address write of address 0x3a  command data write of upper nibble of the low byte of register address (0x00)  command data write of lower nibble of the low byte of register address (0x09) table 7-2. fifo flag 4-bit coding flagx3 flagx2 flagx1 flagx0 pin function 0 0 0 0 flaga = pf, flagb = ff, flagc = ef, flagd = cs# (actual fifo is selected by fifoadr[2:0] pins) 0001reserved 0010reserved 0011reserved 0 1 0 0 ep2 pf 0 1 0 1 ep4 pf 0 1 1 0 ep6 pf 0 1 1 1 ep8 pf 1 0 0 0 ep2 ef 1 0 0 1 ep4 ef 1 0 1 0 ep6 ef 1 0 1 1 ep8 ef 1100ep2 ff 1101ep4 ff 1110ep6 ff 1111ep8 ff polar 0x04 bit # 7 6 5 4 3 2 1 0 bit name wupol 0 pktend sloe slrd slwr ef ff read/w rite r/w r/w r/w r r r r/w r/w default 0 0 0 0 0 000
cy7c6800 1 for for document #: 38-08013 rev. *e page 17 of 42 (2) send high byte of the register (0xe6)  command address write of address 0x3b  command data write of upper nibble of the high byte of register address (0x0e)  command data write of lower nibble of the high byte of register address (0x06) (3) send the actual value to write to the register register (in this case 0x1c)  command address write of address 0x3c  command data write of upper nibble of the high byte of register address (0x01)  command data write of lower nibble of the high byte of register address (0x0c) in order to avoid altering any other bits of the fifopinpolar register (0xe609) inadvertently, the external master must do a read (from polar register), modify the value to set/clear appropriate bits and write the modified value to fifopin- polar register. the external master may read from the polar register using the command read protocol as stated in section 3.7.8. modify the value with the appropriate bit set to change the polarity as needed and write this modified value to the fifopinpolar register. 7.4 revid register 0x05 these register bits define the silicon revision. the upper nibble is the major revision. the lower nibble is the minor revision. for example: if revid = 0x11, then the silicon revision is 1.1. 7.5 epxcfg register 0x06?0x09 these registers configure the large, data-handling sx2 endpoints, ep2, 4, 6, and 8. figure 3-1 shows the configu- ration choices for these endpoints. shaded blocks group endpoint buffers for double-, triple-, or quad-buffering. the endpoint direction is set independently?any shaded block can have any direction. . 7.5.1 bit 7: valid the external master sets valid = 1 to activate an endpoint, and valid = 0 to deactivate it. all sx2 endpoints default to valid. an endpoint whose valid bit is 0 does not respond to any usb traffic. 7.5.2 bit 6: dir 0 = out, 1 = in. defaults for ep2/4 are dir = 0, out, and for ep6/8 are dir = 1, in. 7.5.3 bit [5,4]: type1, type0 these bits define the endpoint type, as shown in table 7-3 . the type bits apply to all of the endpoint configuration registers. all sx2 endpoints except ep0 default to bulk. 7.5.4 bit 3: size 0 = 512 bytes (default), 1 = 1024 bytes. endpoints 4 and 8 can only be 512 bytes and is a read only bit. the size of endpoints 2 and 6 is selectable. 7.5.5 bit 2: stall each bulk endpoint (in or out) has a stall bit (bit 2). if the external master sets this bit, any requests to the endpoint return a stall handshake rather than ack or nak. the get status-endpoint request returns the stall state for the endpoint indicated in byte 4 of the request. note that bit 7 of the endpoint number ep (byte 4) specifies direction. 7.5.6 bit [1,0]: buf1, buf0 for ep2 and ep6 the depth of endpoint buffering is selected via buf1:0, as shown in table 7-4 . for ep4 and ep8 the buffer is internally set to double buffered and are read only bits. revid 0x05 bit # 7 6 5 4 3 2 1 0 bit name major major major major minor minor minor minor read/ write r/w r/w r/w r/w r/w r/w r/w r/w default xxxxxxxx epxcfg 0x06, 0x08 bit # 7 6 5 4 3 2 1 0 bit name valid dir type1 type0 size stall buf1 buf0 read/ write r/w r/w r/w r/w r/w r/w r/w r/w default 10100010 epxcfg 0x07, 0x09 bit # 7 6 5 4 3 2 1 0 bit name valid dir type1 type0 size stall buf1 buf0 read/w rite r/w r/w r/w r/w r r/w r r default 10100010 table 7-3. endpoint type type1 type0 endpoint type 00 invalid 0 1 isochronous 1 0 bulk (default) 1 1 interrupt table 7-4. endpoint buffering buf1 buf0 buffering 00 quad 01invalid [10] 1 0 double 1 1 triple notes: 10. setting the endpoint buffering to invalid causes improper buffer allocation
cy7c6800 1 for for document #: 38-08013 rev. *e page 18 of 42 7.6 epxpktlenh/l registers 0x0a?0x11 the external master can use these registers to set smaller packet sizes than the physical buffer size (refer to the previ- ously described epxcfg registers). the default packet size is 512 bytes for all endpoints. note that ep2 and ep6 can have maximum sizes of 1024 bytes, and ep4 and ep8 can have maximum sizes of 512 bytes, to be consistent with the endpoint structure. in addition, the epxpktlenh register has four other endpoint configuration bits. 7.6.1 bit 7: infm1 epxpktlenh.7 when the external master sets infm = 1 in an endpoint config- uration register, the fifo flags for that endpoint become valid one sample earlier than when the full condition occurs. these bits take effect only when the fifos are operating synchro- nously according to an internally or externally supplied clock. having the fifo flag indications one sample early simplifies some synchronous interfaces. this applies only to in endpoints. default is infm1 = 0. 7.6.2 bit 6: oep1 epxpktlenh.6 when the external master sets an oep = 1 in an endpoint configuration register, the fifo flags for that endpoint become valid one sample earlier than when the empty condition occurs. these bits take effect only when the fifos are operating synchronously according to an internally or exter- nally supplied clock. having the fifo flag indications one sample early simplifies some synchronous interfaces. this applies only to out endpoints. default is oep1 = 0. 7.6.3 bit 5: zerolen epxpktlenh.5 when zerolen = 1 (default), a zero length packet will be sent when the pktend pin is asserted and there are no bytes in the current packet. if zerolen = 0, then a zero length packet will not be sent u nder these conditions. 7.6.4 bit 4: wordwide epxpktlenh.4 this bit controls whether the data interface is 8 or 16 bits wide. if wordwide = 0, the data interface is eight bits wide, and fd[15:8] have no function. if wordwide = 1 (default), the data interface is 16 bits wide. 7.6.5 bit [2..0]: pl[x:0] packet length bits the default packet size is 512 bytes for all endpoints. 7.7 epxpfh/l registers 0x12?0x19 the programmable flag registers control when the pf goes active for each of the four endpoint fifos: ep2, ep4, ep6, and ep8. the epxpfh/l fields are interpreted differently for the high speed operation and full speed operation and for out and in endpoints. following is the register bit definition for high speed operation and for full speed operation (when endpoint is configured as an isochronous endpoint). following is the bit definition for the same register when the device is operating at full speed and the endpoint is not configured as isochronous endpoint. epxpktlenl 0x0b, 0x0d, 0x0f, 0x11 bit # 7 6 5 4 3 2 1 0 bit name pl7 pl6 pl5 pl4 pl3 pl2 pl1 pl0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00000000 ep2pktlenh, ep6pktlenh 0x0a, 0x0e bit # 7 6 5 4 3 2 1 0 bit name infm1 oep1 zero len word wide 0 pl10 pl9 pl8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 001 1 0010 ep4pktlenh, ep8pktlenh 0x0c, 0x10 bit # 7 6 5 4 3 2 1 0 bit name infm1 oep1 zero len word wide 00 pl9pl8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 001 10010 full speed iso and high speed mode: ep2pfl, ep4pfl, ep6pfl, ep8pfl 0x13, 0x15, 0x17, 0x19 bit # 7 6 5 4 3 2 1 0 bit name pfc7 pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00000000 full speed iso and high speed mode: ep4pfh, ep8pfh 0x14, 0x18 bit # 7 6 5 4 3 2 1 0 bit name decis pktstat 0 in: pkts[1] out: pfc10 in: pkts[0] out: pfc9 0 0pfc8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00001000 full speed iso and high speed mode: ep2pfh, ep6pfh 0x12, 0x16 bit # 7 6 5 4 3 2 1 0 bit name decis pktstat in: pkts[2] out: pfc12 in: pkts[1] out: pfc11 in: pkts[0] out: pfc10 0 pfc9 pfc8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 10001000 full speed non-iso mode: ep2pfl, ep4pfl, ep6pfl, ep8pfl 0x13, 0x15, 0x17, 0x19 bit # 7 6 5 4 3 2 1 0 bit name in: pkts[1] out: pfc7 in: pkts[0] out: pfc6 pfc5 pfc4 pfc3 pfc2 pfc1 pfc0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 0 0 000000
cy7c6800 1 for for document #: 38-08013 rev. *e page 19 of 42 7.7.1 decis: epxpfh.7 if decis = 0, then pf goes high when the byte count i is equal to or less than what is defined in the pf registers. if decis = 1 (default), then pf goes high when the byte count equal to or greater than what is set in the pf register. for out endpoints, the byte count is the total number of bytes in the fifo that are available to the external master. for in endpoints, the byte count is determined by the pkstat bit. 7.7.2 pkstat: epxpfh.6 for in endpoints, the pf can apply to either the entire fifo, comprising multiple packets, or only to the current packet being filled. if pktstat = 0 (default), the pf refers to the entire in endpoint fifo. if pktstat = 1, the pf refers to the number of bytes in the current packet. 7.7.3 in: pkts(2:0)/out: pfc[12:10]: epxpfh[5:3] these three bits have a different meaning, depending on whether this is an in or out endpoint. 7.7.3.1 in endpoints if in endpoint, the meaning of this epxpfh[5:3] bits depend on the pktstat bit setting. when pktstat = 0 (default), the pf considers when there are pkts packets plus pfc bytes in the fifo. pkts[2:0] determines how many packets are considered, according to the following table. when pktstat = 1, the pf considers when there are pfc bytes in the fifo, no matter how many packets are in the fifo. the pkts[2:0] bits are ignored. 7.7.3.2 out endpoints the pf considers when there are pfc bytes in the fifo regardless of the pktstat bit setting. 7.8 epxisoinpkts registers 0x1a?0x1d for isochronous in endpoints only, these registers determine the number of packets per frame (only one per frame for full-speed mode) or microframe (up to three per microframe for high-speed mode), according to the following table. 7.9 epxxflags registers 0x1e?0x1f the epxxflags provide an alternate way of checking the status of the endpoint fifo flags. if enabled, the sx2 can interrupt the external master when a flag is asserted, and the external master can read these two registers to determine the state of the fifo flags. if the infm1 and/or oep1 bits are set, then the epxef and epxff bits are actually empty +1 and full ?1. 7.9.1 epxpf bit 6, bit 2 this bit is the current state of endpoint x?s programmable flag. full speed non-iso mode: ep2pfh, ep6pfh 0x12, 0x16 bit # 7 6 5 4 3 2 1 0 bit name decis pktstat out: pfc12 out: pfc11 out: pfc10 0pfc9 in: pkts[2] out: pfc8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 1 0 00100 0 full speed non-iso mode: ep4pfh, ep8pfh 0x14, 0x18 bit # 7 6 5 4 3 2 1 0 bit name decis pkt- stat 0out: pfc10 out: pfc9 0 0pfc8 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 0 0 0 0 1000 pktstat pf applies to epnpfh:l format 0 number of committed packets + current packet bytes pkts[] and pfc[] 1 current packet bytes only pfc[ ] table 7-5. pkts bits pkts2 pkts1 pkts0 number of packets 000 0 001 1 010 2 011 3 10 0 4 ep2isoinokts, ep4isoinpkts, ep6isoinpkts, ep8isoinpkts 0x1a, 0x1b, 0x1c, 0x1d bit # 7 6 5 4 3 2 1 0 bit name 00000inppf2inppf1inppf0 read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00000 0 0 1 table 7-6. epxisoinpkts inppf1 inppf0 packets 0 0 invalid 0 1 1 (default) 10 2 11 3 ep24flags 0x1e bit # 7 6 5 4 3 2 1 0 bit name 0 ep4pf ep4ef ep4ff 0 ep2pf ep4ef ep4ff read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00100010 ep68flags 0x1f bit # 7 6 5 4 3 2 1 0 bit name 0 ep8pf ep8ef ep8ff 0 ep6pf ep6ef ep6ff read/write r/w r/w r/w r/w r/w r/w r/w r/w default 00100010 table 7-5. pkts bits (continued) pkts2 pkts1 pkts0 number of packets
cy7c6800 1 for for document #: 38-08013 rev. *e page 20 of 42 7.9.2 epxef bit 5, bit 1 this bit is the current state of endpoint x?s empty flag. epxef = 1 if the endpoint is empty. 7.9.3 epxff bit 4, bit 0 this bit is the current state of endpoint x?s full flag. epxff = 1 if the endpoint is full. 7.10 inpktend/flush register 0x20 this register allows the external master to duplicate the function of the pktend pin. the register also allows the external master to selectively flush endpoint fifo buffers. bit [4..7]: fifox these bits allows the external master to selectively flush any or all of the endpoint fifos. by writing the desired endpoint fifo bit, sx2 logic flushes the selected fifo. for example setting bit 7 flushes endpoint 8 fifo. bit [3..0]: epx these bits are is used only for in transfers. by writing the desired endpoint number (2,4,6 or 8), sx2 logic automatically commits an in buffer to the usb host. for example, for committing a packet through endpoint 6, set the lower nibble to 6: set bits 1 and 2 high. 7.11 usbframeh/l registers 0x2a, 0x2b every millisecond, the usb host sends an sof token indicating ?start of frame,? along with an 11-bit incrementing frame count. the sx2 copies the frame count into these registers at every sof. one use of the frame count is to respond to the usb sync_frame request. if the sx2 detects a missing or garbled sof, the sx2 generates an internal sof and incre- ments usbframel?usbrameh. 7.12 microframe registers 0x2c microframe contains a count 0?7 that indicates which of the 125 microsecond microframes last occurred. this register is active only when sx2 is operating in high- speed mode (480 mbits/sec). 7.13 fnaddr register 0x2d during the usb enumeration process, the host sends a device a unique 7-bit address that the sx2 copies into this register. there is normally no reason for the external master to know its usb device address because the sx2 automatically responds only to its assigned address. bit 7: hsgrant, set to 1 if the sx2 enumerated at high speed. set to 0 if the sx2 enumerated at full speed. bit[6..0]: address set by the host. 7.14 intenable register 0x2e this register is used to enable/disable the various interrupt sources, and by default all interrupts are enabled. 7.14.1 setup bit 7 setting this bit to a 1 enables an interrupt when a set-up packet is received from the usb host. 7.14.2 ep0buf bit 6 setting this bit to a 1 enables an interrupt when the endpoint 0 buffer becomes available. 7.14.3 flags bit 5 setting this bit to a 1 enables an interrupt when an out endpoint fifo?s state transitions from empty to not-empty. 7.14.4 enumok bit 2 setting this bit to a 1 enables an interrupt when sx2 enumer- ation is complete. 7.14.5 busactivity bit 1 setting this bit to a 1 enables an interrupt when the sx2 detects an absence or presence of bus activity. inpktend/flush 0x20 bit # 7 6 5 4 3 2 1 0 bit name fifo8 fifo6 fifo4 fifo2 ep3 ep2 ep1 ep0 read/write wwwwwwww default 0 0 0 0 0000 usbframeh 0x2a bit # 7 6 5 4 3 2 1 0 bit name 00000fc10fc9fc8 read/write rrrrrrrr default xxxxxxx x usbframel 0x2b bit # 7 6 5 4 3 2 1 0 bit name fc7 fc6 fc5 fc4 fc3 fc2 fc1 fc0 read/write rrrrrrrr default xxxxxxxx microframe 0x2c bit # 7 6 5 4 3 2 1 0 bit name 00000mf2mf1mf0 read/write rrrrrrrr default xxxxxxx x fnaddr 0x2d bit # 7 6 5 4 3 2 1 0 bit name hsgrant fa6 fa5 fa4 fa3 fa2 fa1 fa0 read/write r rrrrrrr default 0 0000000 intenable 0x2e bit # 7 6 5 4 3 2 1 0 bit name setup ep0 buf flags 1 1 enum ok bus activity ready read/write r/w r/w r/w r/w r/w r/w r/w r/w default 111111 1 1
cy7c6800 1 for for document #: 38-08013 rev. *e page 21 of 42 7.14.6 ready bit 0 setting this bit to a 1 enables an interrupt when the sx2 has powered on and performed an internal self-test. 7.15 desc register 0x30 this register address is used to write the 500-byte descriptor ram. the external master writes two bytes (four command data transfers) to this address corresponding to the length of the descriptor or vid/pid/did data to be written. the external master then consecutively writes that number of bytes into the descriptor ram in nibble format. for complete details, refer to section 4.0. 7.16 ep0buf register 0x31 this register address is used to access the 64-byte endpoint 0 buffer. the external master can read or write to this register to complete endpoint 0 data transfers. for complete details, refer to section 5.0. 7.17 setup register 0x32 this register address is used to access the 8-byte set-up packet received from the usb host. if the external master writes to this register, it can stall endpoint 0. for complete details, refer to section 5.0. 7.18 ep0bc register 0x33 this register address is used to access the byte count of endpoint 0. for endpoint 0 out transfers, the external master can read this register to get the number of bytes transferred from the usb host. for endpoint 0 in transfers, the external master writes the number of bytes in the endpoint 0 buffer to transfer the bytes to the usb host. for complete details, refer to section 5.0.
cy7c6800 1 for for document #: 38-08013 rev. *e page 22 of 42 8.0 absolute maximum ratings storage temperature ........................................................................................................... ................................?65c to +150c ambient temperature with power supplied ........................................................................................ ........................0c to +70c supply voltage to ground potential ............................................................................................. ............................ ?0.5v to +4.0v dc input voltage to any pin .................................................................................................... ............................................. 5.25v dc voltage applied to outputs in high-z state ........................................................................................................ ......................... ?0.5v to v cc + 0.5v power dissipation .............................................................................................................. ............................................... 936 mw static discharge voltage....................................................................................................... ............................................ > 2000v 9.0 operating conditions t a (ambient temperature under bias) .............................................................................................. .........................0c to +70c supply voltage ................................................................................................................. ........................................ +3.0v to +3.6v ground voltage ................................................................................................................. .......................................................... 0v f osc (oscillator or crystal frequency) ............................................................................................. ................................. 24 mhz 100-ppm parallel resonant 10.0 dc electrical characteristics note: 11. specific conditions for i cc measurements: hs typical 3.3v, 25c, 48 mhz; fs typical 3.3v, 25c, 48 mhz. table 10-1. dc characteristics parameter description conditions [11] min. typ. max. unit v cc supply voltage 3.0 3.3 3.6 v v ih input high voltage 2 5.25 v v il input low voltage ?0.5 0.8 v i i input leakage current 0< v in < v cc 10 a v oh output voltage high i out = 4 ma 2.4 v v ol output voltage low i out = ?4 ma 0.4 v i oh output current high 4ma i ol output current low 4ma c in input pin capacitance except d+/d- 10 pf d+/d- 15 pf i susp suspend current includes 1.5k integrated pull-up 250 400 a i susp suspend current excluding 1.5k integrated pull-up 30 180 a i cc supply current connected to usb at high speed 200 260 ma connected to usb at full speed 90 150 ma t reset reset time after valid power vcc min = 3.0v 1.91 ms
cy7c6800 1 for for document #: 38-08013 rev. *e page 23 of 42 11.0 ac electrical characteristics 11.1 usb transceiver usb 2.0-certified compliant in full and high speed. 11.2 command interface 11.2.1 command synchronous read table 11-1. command synchronous read parameters with internally sourced ifclk parameter description min. max. unit t ifclk ifclk period 20.83 ns t srd slrd to clock set-up time 18.7 ns t rdh clock to slrd hold time 0 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns t int clock to int# output propagation delay 9.5 ns table 11-2. command synchronous read with externally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20 200 ns t srd slrd to clock set-up time 12.7 ns t rdh clock to slrd hold time 3.7 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns t int clock to int# output propagation delay 13.5 ns notes: 12. dashed lines denote signals with programmable polarity. 13. externally sourced ifclk must not exceed 50 mhz. ifclk slrd int# sloe t srd t rdh t oeon data t ifclk t oeoff n t int figure 11-1. command synchronous read timing diagram [12]
cy7c6800 1 for for document #: 38-08013 rev. *e page 24 of 42 11.2.2 command synchronous write table 11-3. command synchronous write parameters with internally sourced ifclk parameter description min. max. unit t ifclk ifclk period 20.83 ns t swr slwr to clock set-up time 18.1 ns t wrh clock to slwr hold time 0 ns t sfd command data to clock set-up time 9.2 ns t fdh clock to command data hold time 0 ns t nrdy clock to ready output propagation time 9.5 ns table 11-4. command synchronous write parameters with externally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20 200 ns t swr slwr to clock set-up time 12.1 ns t wrh clock to slwr hold time 3.6 ns t sfd command data to clock set-up time 3.2 ns t fdh clock to command data hold time 4.5 ns t nrdy clock to ready output propagation time 13.5 ns figure 11-2. command synchronous write timing diagram [12] data slwr ifclk ready t ifclk t wrh t swr t sfd t fdh t nrdy t nrdy n
cy7c6800 1 for for document #: 38-08013 rev. *e page 25 of 42 11.2.3 command asynchronous read 11.2.4 command asynchronous write table 11-5. command read parameters parameter description min. max. unit t rdpwl slrd pulse width low 50 ns t rdpwh slrd pulse width high 50 ns t ird interrupt to slrd 0 ns t xint slrd to interrupt 70 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns table 11-6. command write parameters parameter description min. max. unit t wrpwl slwr pulse low 50 ns t wrpwh slwr pulse high 70 ns t sfd slwr to command data set-up time 10 ns t fdh command data to slwr hold time 10 ns t rdywr ready to slwr time 0 ns t rdy slwr to ready 70 ns slrd int# t rdpwl t rdpwh sloe t xint data t oeon t oeoff n t ird figure 11-3. command asynchronous read timing diagram [12] figure 11-4. command asynchronous write timing diagram [12] data slwr ready t sfd t fdh t wrpwl t wrpwh t nrdy t rdywr t rdy
cy7c6800 1 for for document #: 38-08013 rev. *e page 26 of 42 11.3 fifo interface 11.3.1 slave fifo synchronous read ifclk slrd flags sloe t srd t rdh t oeon t xfd t xflg data t ifclk n+1 t oeoff n figure 11-5. slave fifo synchronous read timing diagram [12] table 11-7. slave fifo synchronous read with internally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20.83 ns t srd slrd to clock set-up time 18.7 ns t rdh clock to slrd hold time 0 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns t xflg clock to flags output propagation delay 9.5 ns t xfd clock to fifo data output propagation delay 11 ns table 11-8. slave fifo synchronous read with externally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20 200 ns t srd slrd to clock set-up time 12.7 ns t rdh clock to slrd hold time 3.7 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns t xflg clock to flags output propagation delay 13.5 ns t xfd clock to fifo data output propagation delay 15 ns
cy7c6800 1 for for document #: 38-08013 rev. *e page 27 of 42 11.3.2 slave fifo synchronous write table 11-9. slave fifo synchronous write parameters with internally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20.83 ns t swr slwr to clock set-up time 18.1 ns t wrh clock to slwr hold time 0 ns t sfd fifo data to clock set-up time 9.2 ns t fdh clock to fifo data hold time 0 ns t xflg clock to flags output propagation time 9.5 ns table 11-10. slave fifo synchronous write parameters with externally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20 ns t swr slwr to clock set-up time 12.1 ns t wrh clock to slwr hold time 3.6 ns t sfd fifo data to clock set-up time 3.2 ns t fdh clock to fifo data hold time 4.5 ns t xflg clock to flags output propagation time 13.5 ns figure 11-6. slave fifo synchronous write timing diagram [12] t sfd t fdh data ifclk slwr flags t wrh t xflg t ifclk t swr n
cy7c6800 1 for for document #: 38-08013 rev. *e page 28 of 42 11.3.3 slave fifo synchronous packet end strobe 11.3.4 slave fifo synchronous address table 11-11. slave fifo synchronous packet end strobe parameters, internally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20.83 ns t spe pktend to clock set-up time 14.6 ns t peh clock to pktend hold time 0 ns t xflg clock to flags output propagation delay 9.5 ns table 11-12. slave fifo synchronous packet end strobe parameters, externally sourced ifclk [13] parameter description min. max. unit t ifclk ifclk period 20 200 ns t spe pktend to clock set-up time 8.6 ns t peh clock to pktend hold time 2.5 ns t xflg clock to flags output propagation delay 13.5 ns table 11-13. slave fifo synchronous address parameters [13] parameter description min. max. unit t ifclk interface clock period 20 200 ns t sfa fifoadr[2:0] to clock set-up time 25 ns t fah clock to fifoadr[2:0] hold time 10 ns flags t xflg ifclk pktend t spe t peh figure 11-7. slave fifo synchronous packet end strobe timing diagram [12] ifclk slcs#/fifoadr[2:0] t sfa t fah figure 11-8. slave fifo synchronous address timing diagram
cy7c6800 1 for for document #: 38-08013 rev. *e page 29 of 42 11.3.5 slave fifo asynchronous read 11.3.6 slave fifo asynchronous write table 11-14. slave fifo asynchronous read parameters [14] parameter description min. max. unit t rdpwl slrd pulse width low 50 ns t rdpwh slrd pulse width high 50 ns t xflg slrd to flags output propagation delay 70 ns t xfd slrd to fifo data output propagation delay 15 ns t oeon sloe turn-on to fifo data valid 10.5 ns t oeoff sloe turn-off to fifo data hold 10.5 ns table 11-15. slave fifo asynchronous write parameters with internally sourced ifclk [14] parameter description min. max. unit t wrpwl slwr pulse low 50 ns t wrpwh slwr pulse high 70 ns t sfd slwr to fifo data set-up time 10 ns t fdh fifo data to slwr hold time 10 ns t xfd slwr to flags output propagation delay 70 ns note: 14. slave fifo asynchronous parameter values are using internal ifclk setting at 48 mhz. slrd flags t rdpwl t rdpwh sloe t xflg t xfd data t oeon t oeoff n+1 n figure 11-9. slave fifo asynchronous read timing diagram [12] data t sfd t fdh flags t xfd slwr/slcs# t wrpwh t wrpwl figure 11-10. slave fifo asynchronous write timing diagram [12]
cy7c6800 1 for for document #: 38-08013 rev. *e page 30 of 42 11.3.7 slave fifo asynchronous packet end strobe 11.3.8 slave fifo asynchronous address 11.4 slave fifo address to flags/data following timing is applicable to synchronous and asynchronous interfaces. table 11-16. slave fifo asynchronous packet end strobe parameters [14] parameter description min. max. unit t pepwl pktend pulse width low 50 ns t pwpwh pktend pulse width high 50 ns t xflg pktend to flags output propagation delay 110 ns table 11-17. slave fifo asynchronous address parameters [14] parameter description min. max. unit t sfa fifoadr[2:0] to rd/wr/pktend set-up time 10 ns t fah slrd/pktend to fifoadr[2:0] hold time 20 ns t fah slwr to fifoadr[2:0] hold time 70 ns flags t xflg pktend t pepwl t pepwh figure 11-11. slave fifo asynchronous packet end strobe timing diagram slrd/slwr/pktend slcs/fifoadr[2:0] t sfa t fah figure 11-12. slave fifo asynchronous address timing diagram [12] table 11-18. slave fifo address to flags/data parameters parameter description min. max. unit t xflg fifoadr[2:0] to flags output propagation delay 10.7 ns t xfd fifoadr[2:0] to fifodata output propagation delay 14.3 ns fifoadr [2.0] data t xflg t xfd flags nn+1 figure 11-13. slave fifo address to flags/data timing diagram [11]
cy7c6800 1 for for document #: 38-08013 rev. *e page 31 of 42 11.5 slave fifo output enable following timings are applicable to synchronous and asynchronous interfaces. 11.6 sequence diagram 11.6.1 single and burst synchronous read example table 11-19. slave fifo output enable parameters parameter description min. max. unit t oeon sloe assert to fifo data output 10.5 ns t oeoff sloe deassert to fifo data hold 10.5 ns sloe data t oeon t oeoff figure 11-14. slave fifo output enable timing diagram [11] ifclk slrd flags sloe data figure 11-15. slave fifo synchronous read sequence and timing diagram t srd t rdh t oeon t xfd t xflg t ifclk n+1 data driven: n >= t srd t oeon t xfd n+2 t xfd t xfd >= t rdh t oeoff n+4 n+3 t oeoff t sfa t fah fifoadr slcs t=0 n+1 t=1 t=2 t=3 t=4 t fah t=0 t sfa t=1 t=2 t=3 t=4 nn n+1 n+2 fifo pointer n+3 fifo data bus n+4 not driven driven: n sloe slrd n+1 n+2 n+3 not driven slrd sloe ifclk figure 11-16. slave fifo synchronous sequence of events diagram ifclk ifclk ifclk ifclk n+4 n+4 ifclk ifclk ifclk ifclk slrd n+1 slrd n+1 n+1 sloe not driven n+4 n+4 ifclk sloe
cy7c6800 1 for for document #: 38-08013 rev. *e page 32 of 42 figure 11-15 shows the timing relationship of the slave fifo signals during a synchronous fifo read using ifclk as the synchronizing clock. the diagram illustrates a single read followed by a burst read.  at t = 0 the fifo address is stable and the signal slcs is asserted (slcs may be tied low in some applications). note: t sfa has a minimum of 25 nsec. this means when ifclk is running at 48 mhz, the fifo address setup time is more than one ifclk cycle.  at = 1, sloe is asserted. sloe is an output enable only, whose sole function is to drive the data bus. the data that is driven on the bus is the data that the internal fifo pointer is currently pointing to. in this example it is the first data value in the fifo. note: the data is pre-fetched and is driven on the bus when sloe is asserted.  at t = 2, slrd is asserted. slrd must meet the setup time of t srd (time from asserting the slrd signal to the rising edge of the ifclk) and maintain a minimum hold time of t rdh (time from the ifclk edge to the deassertion of the slrd signal). if the slcs signal is used, it must be asserted with slrd, or before slrd is asserted (i.e. the slcs and slrd signals must both be asserted to start a valid read condition).  the fifo pointer is updated on the rising edge of the ifclk, while slrd is asserted. this starts the propagation of data from the newly addressed location to the data bus. after a propagation delay of t xfd (measured from the rising edge of ifclk) the new data value is present. n is the first data value read from the fifo. in order to have data on the fifo data bus, sloe must also be asserted. the same sequence of events are shown for a burst read and are marked with the time indicators of t = 0 through 5. note: for the burst mode, the slrd and sloe are left asserted during the entire duration of the read. in the burst read mode, when sloe is asserted, data indexed by the fifo pointer is on the data bus. during the first read cycle, on the rising edge of the clock the fifo pointer is updated and increments to point to address n+1. for each subsequent rising edge of ifclk, while the slrd is asserted, the fifo pointer is incre- mented and the next data value is placed on the data bus. 11.6.2 single and burst synchronous write figure 11-17 shows the timing relationship of the slave fifo signals during a synchronous write using ifclk as the synchronizing clock. the diagram illustrates a single write followed by burst write of 3 bytes and committing all 4 bytes as a short packet using the pktend pin.  at t = 0 the fifo address is stable and the signal slcs is asserted. (slcs may be tied low in some applications) note: t sfa has a minimum of 25 ns. this means when ifclk is running at 48 mhz, the fifo address setup time is more than one ifclk cycle.  at t = 1, the external master/peripheral must outputs the data value onto the data bus with a minimum set up time of t sfd before the rising edge of ifclk.  at t = 2, slwr is asserted. the slwr must meet the setup time of t swr (time from asserting the slwr signal to the rising edge of ifclk) and maintain a minimum hold time of t wrh (time from the ifclk edge to the de-assertion of the slwr signal). if slcs signal is used, it must be asserted with slwr or before slwr is asserted. (i.e. the slcs and slwr signals must both be asserted to start a valid write condition). ifclk slwr flags data figure 11-17. slave fifo synchronous write sequence and timing diagram [12] t swr t wrh t sfd t xflg t ifclk n >= t swr >= t wrh n+3 pktend n+2 t xflg t sfa t fah t spe t peh fifoadr slcs t sfd t sfd t sfd n+1 t fdh t fdh t fdh t fdh t=0 t=1 t=2 t=3 t sfa t fah t=1 t=0 t=2 t=5 t=3 t=4
cy7c6800 1 for for document #: 38-08013 rev. *e page 33 of 42  while the slwr is asserted, data is written to the fifo and on the rising edge of the ifclk, the fifo pointer is incre- mented. the fifo flag will also be updated after a delay of t xflg from the rising edge of the clock. the same sequence of events are also shown for a burst write and are marked with the time indicators of t=0 through 5. note: for the burst mode, slwr and slcs are left asserted for the entire duration of writing all the required data values. in this burst write mode, once the slwr is asserted, the data on the fifo data bus is written to the fifo on every rising edge of ifclk. the fifo pointer is updated on each rising edge of ifclk. in figure 11-17 , once the four bytes are written to the fifo, slwr is de-asserted. the short 4-byte packet can be committed to the host by asserting the pktend signal. there is no specific timing requirement that needs to be met for asserting pktend signal with regards to asserting the slwr signal. pktend can be asserted with the last data value or thereafter. the only consideration is the setup time t spe and the hold time t peh must be met. in the scenario of figure 11-17 , the number of data values committed includes the last value written to the fifo. in this example, both the data value and the pktend signal are clocked on the same rising edge of ifclk. pktend can be asserted in subsequent clock cycles. the fifoaddr lines should be held constant during the pktend assertion. 11.6.3 sequence diagram of a single and burst asynchro- nous read figure 11-18 diagrams the timing relationship of the slave fifo signals during an asynchronous fifo read. it shows a single read followed by a burst read.  at t = 0 the fifo address is stable and the slcs signal is asserted.  at t = 1, sloe is asserted. this results in the data bus being driven. the data that is driven on to the bus is previous data, it data that was in the fifo from a prior read cycle.  at t = 2, slrd is asserted. the slrd must meet the minimum active pulse of t rdpwl and minimum de-active pulse width of t rdpwh . if slcs is used then, slcs must be in asserted with slrd or before slrd is asserted. (i.e. the slcs and slrd signals must both be asserted to start a valid read condition.)  the data that will be driven, after asserting slrd, is the updated data from the fifo. this data is valid after a propa- gation delay of t xfd from the activating edge of slrd. in figure 11-18 , data n is the first valid data read from the fifo. for data to appear on the data bus during the read cycle (i.e. slrd is asserted), sloe must be in an asserted state. slrd and sloe can also be tied together. the same sequence of events is also shown for a burst read marked with t = 0 through 5. note: in burst read mode, during sloe is assertion, the data bus is in a driven state and outputs the previous data. once slrd is asserted, the data from the slrd flags sloe data figure 11-18. slave fifo asynchronous read sequence and timing diagram t rdpwh t rdpwl t oeon t xfd t xflg n data (x) t xfd n+1 t xfd t oeoff n+3 n+2 t oeoff t xflg t sfa t fah fifoadr slcs driven t xfd t oeon t rdpwh t rdpwl t rdpwh t rdpwl t rdpwh t rdpwl t fah t sfa n t=0 t=0 t=1 t=7 t=2 t=3 t=4 t=5 t=6 t=1 t=2 t=3 t=4 nn sloe slrd fifo pointer n+3 fifo data bus not driven driven: x n not drive n sloe n n+2 n+3 figure 11-19. slave fifo asynchronous read sequence of events diagram slrd n n+1 slrd n+1 slrd n+1 n+2 slrd n+2 slrd n+2 n+1 sloe not driven sloe n n+1 n+1
cy7c6800 1 for for document #: 38-08013 rev. *e page 34 of 42 fifo is driven on the data bus (sloe must also be asserted) and then the fifo pointer is incremented. 11.6.4 sequence diagram of a single and burst asynchronous write figure 11-20 diagrams the timing relationship of the slave fifo write in an asynchronous mode. the diagram shows a single write followed by a burst write of 3 bytes and committing the 4-byte-short packet using pktend. at t = 0 the fifo address is applied, insuring that it meets the setup time of t sfa . if slcs is used, it must also be asserted (slcs may be tied low in some applications). ..at t = 1 slwr is asserted. slwr must meet the minimum active pulse of t wrpwl and minimum de-active pulse width of t wrpwh . if the slcs is used, it must be in asserted with slwr or before slwr is asserted. at t = 2, data must be present on the bus t sfd before the de- asserting edge of slwr. at t = 3, de-asserting slwr will cause the data to be written from the data bus to the fifo and then increments the fifo pointer. the fifo flag is also updated after t xflg from the de- asserting edge of slwr. the same sequence of events are shown for a burst write and is indicated by the timing marks of t = 0 through 5. note: in the burst write mode, once slwr is de-asserted, the data is written to the fifo and then the fifo pointer is incremented to the next byte in the fifo. the fifo pointer is post incre- mented. in figure 11-20 once the four bytes are written to the fifo and slwr is deasserted, the short 4-byte packet can be committed to the host using the pktend. the external device should be designed to not assert slwr and the pktend signal at the same time. it should be designed to assert the pktend after slwr is deasserted and met the minimum de- asserted pulse width. the fifoaddr lines are to be held constant during the pktend assertion. pktend slwr flags data figure 11-20. slave fifo asynchronous write sequence and timing diagram [12] t wrpwh t wrpwl t xflg n t sfd n+1 t xflg t sfa t fah fifoadr slcs t wrpwh t wrpwl t wrpwh t wrpwl t wrpwh t wrpwl t fah t sfa t fdh t sfd n+2 t fdh t sfd n+3 t fdh t sfd t fdh t pepwh t pepwl t=0 t=2 t =1 t=3 t=0 t=2 t=1 t=3 t=6 t=9 t=5 t=8 t=4 t=7
cy7c6800 1 for for document #: 38-08013 rev. *e page 35 of 42 12.0 default descriptor //device descriptor 18, //descriptor length 1, //descriptor type 00,02, //specification version (bcd) 00, //device class 00, //device sub-class 00, //device sub-sub-class 64, //maximum packet size lsb(vid),msb(vid),//vendor id lsb(pid),msb(pid),//product id lsb(did),msb(did),//device id 1, //manufacturer string index 2, //product string index 0, //serial number string index 1, //number of configurations //devicequaldscr 10, //descriptor length 6, //descriptor type 0x00,0x02, //specification version (bcd) 00, //device class 00, //device sub-class 00, //device sub-sub-class 64, //maximum packet size 1, //number of configurations 0, //reserved //highspeedconfigdscr 9, //descriptor length 2, //descriptor type 46, //total length (lsb) 0, //total length (msb) 1, //number of interfaces 1, //configuration number 0, //configuration string 0xa0, //attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu) 50, //power requirement (div 2 ma) //interface descriptor 9, //descriptor length 4, //descriptor type 0, //zero-based index of this interface 0, //alternate setting 4, //number of end points 0xff, //interface class 0x00, //interface sub class 0x00, //interface sub sub class 0, //interface descriptor string index //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x02, //endpoint number, and direction 2, //endpoint type 0x00, //maximum packet size (lsb) 0x02, //max packet size (msb) 0x00, //polling interval
cy7c6800 1 for for document #: 38-08013 rev. *e page 36 of 42 //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x04, //endpoint number, and direction 2, //endpoint type 0x00, //maximum packet size (lsb) 0x02, //max packet size (msb) 0x00, //polling interval //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x86, //endpoint number, and direction 2, //endpoint type 0x00, //maximum packet size (lsb) 0x02, //max packet size (msb) 0x00, //polling interval //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x88, //endpoint number, and direction 2, //endpoint type 0x00, //maximum packet size (lsb) 0x02, //max packet size (msb) 0x00, //polling interval //fullspeedconfigdscr 9, //descriptor length 2, //descriptor type 46, //total length (lsb) 0, //total length (msb) 1, //number of interfaces 1, //configuration number 0, //configuration string 0xa0, //attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu) 50, //power requirement (div 2 ma) //interface descriptor 9, //descriptor length 4, //descriptor type 0, //zero-based index of this interface 0, //alternate setting 4, //number of end points 0xff, //interface class 0x00, //interface sub class 0x00, //interface sub sub class 0, //interface descriptor string index //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x02, //endpoint number, and direction 2, //endpoint type 0x40, //maximum packet size (lsb) 0x00, //max packet size (msb) 0x00, //polling interval
cy7c6800 1 for for document #: 38-08013 rev. *e page 37 of 42 //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x04, //endpoint number, and direction 2, //endpoint type 0x40, //maximum packet size (lsb) 0x00, //max packet size (msb) 0x00, //polling interval //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x86, //endpoint number, and direction 2, //endpoint type 0x40, //maximum packet size (lsb) 0x00, //max packet size (msb) 0x00, //polling interval //endpoint descriptor 7, //descriptor length 5, //descriptor type 0x88, //endpoint number, and direction 2, //endpoint type 0x40, //maximum packet size (lsb) 0x00, //max packet size (msb) 0x00, //polling interval //stringdscr //stringdscr0 4, //string descriptor length 3, //string descriptor 0x09,0x04, //us langid code //stringdscr1 16, //string descriptor length 3, //string descriptor 'c',00, 'y',00, 'p',00, 'r',00, 'e',00, 's',00, 's',00, //stringdscr2 20, //string descriptor length 3, //string descriptor 'c',00, 'y',00, '7',00, 'c',00, '6',00, '8',00, '0',00, '0',00, '1',00,
cy7c6800 1 for for document #: 38-08013 rev. *e page 38 of 42 13.0 general pcb layout guidelines [15] the following recommendations should be followed to ensure reliable high-performance operation.  at least a four-layer impedance controlled boards are re- quired to maintain signal quality.  specify impedance targets (ask your board vendor what they can achieve).  to control impedance, maintain trace widths and trace spac- ing.  minimize stubs to minimize reflected signals.  connections between the usb connector shell and signal ground must be done near the usb connector.  bypass/flyback caps on vbus, near connector, are recom- mended.  dplus and dminus trace lengths should be kept to within 2 mm of each other in length, with preferred length of 20?30 mm.  maintain a solid ground plane under the dplus and dmi- nus traces. do not allow the plane to be split under these traces.  it is preferred to have no vias placed on the dplus or dmi- nus trace routing.  isolate the dplus and dminus traces from all other signal traces by no less than 10 mm. 14.0 quad flat package no leads (qfn) package design notes electrical contact of the part to the printed circuit board (pcb) is made by soldering the leads on the bottom surface of the package to the pcb. hence, special attention is required to the heat transfer area below the package to provide a good thermal bond to the circuit board. a copper (cu) fill is to be designed into the pcb as a thermal pad under the package. heat is transferred from the sx2 through the device?s metal paddle on the bottom side of the package. heat from here, is conducted to the pcb at the thermal pad. it is then conducted from the thermal pad to the pcb inner ground plane by a 5 x 5 array of via. a via is a plated through hole in the pcb with a finished diameter of 13 mil. the qfn?s metal die paddle must be soldered to the pcb?s thermal pad. solder mask is placed on the board top side over each via to resist solder flow into the via. the mask on the top side also minimizes outgassing during the solder reflow process. for further information on this package design please refer to the application note ?surface mount assembly of amkor?s microleadframe (mlf) technology.? this application note can be downloaded from amkor?s web site from the following url http://www.amkor.com/products/notes_papers/mlf_appnote _0902.pdf. the application note provides detailed information on board mounting guidelines, soldering flow, rework process, etc. figure 14-1 below display a cross-sectional area underneath the package. the cross section is of only one via. the solder paste template needs to be designed to allow at least 50% solder coverage. the thickness of the solder paste template should be 5 mil. it is recommended that ?no clean? type 3 solder paste is used for mounting the part. nitrogen purge is recommended during reflow. figure 14-2 a is a plot of the solder mask pattern and figure 14-2 b displays an x-ray image of the assembly (darker areas indicate solder. note: 15. source for recommendations: high-speed usb platform design guidelines , http://www.usb.org/developers/data/hs_usb_pdg_r1_0.pdf. 0.017? dia solder mask cu fill cu fill pcb material pcb material 0.013? dia via hole for thermally connecting the qfn to the circuit board ground plane. this figure only shows the top three layers of the circuit board: top solder, pcb dielectric, and the ground plane. figure 14-1. cross section of the area underneath the qfn package figure 14-2. (a) plot of the solder mask (white area) figure 14-2 (b) x-ray image of the assembly
cy7c6800 1 for for document #: 38-08013 rev. *e page 39 of 42 15.0 ordering information 16.0 package diagrams 16.1 56-pin ssop package note: 16. slave fifo asynchronous parameter values are using internal ifclk setting at 48 mhz. table 15-1. ordering information ordering code package type cy7c68001-56pvc 56 ssop CY7C68001-56LFC 56 qfn cy7c68001-56pvxc 56 ssop, lead-free cy7c68001-56lfxc 56 qfn, lead-free cy3682 ez-usb sx2 development kit 51-85062-*c figure 16-1. 56-lead shrunk small outline package 56-pin shrunk small outline package 056
cy7c6800 1 document #: 38-08013 rev. *e page 40 of 42 ? cypress semiconductor corporation, 2004. the information contained herein is subject to change without notice. cypress semic onductor corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a cypress product. nor does it convey or imply any license under patent or ot her rights. cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agr eement with cypress. furthermore, cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to re s ult in significant injury to the user. the inclusion of cypress 16.2 56-pin qfn package purchase of i 2 c components from cypress, or one of its sublicensed associated companies, conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. ez-usb sx2 is a trademark of cypress semiconductor. all product and company names mentioned in this document are the trademarks of their respective holders. 0.80[0.031] 7.70[0.303] 7.90[0.311] a c 1.00[0.039] max. n seating plane n 2 0.18[0.007] 0.50[0.020] 1 1 0.08[0.003] 0.50[0.020] 0.05[0.002] max. 2 (4x) c 0.24[0.009] 0.20[0.008] ref. 0.80[0.031] max. pin1 id 0-12 6.45[0.254] 8.10[0.319] 7.80[0.307] 6.55[0.258] 0.45[0.018] 0.20[0.008] r. 8.10[0.319] 7.90[0.311] 7.80[0.307] 7.70[0.303] dia. 0.28[0.011] 0.30[0.012] 6.55[0.258] 6.45[0.254] 0.60[0.024] top view bottom view side view e-pad (pad size vary by device type) figure 16-2. lf56a 56-pin qfn package 51-85144-*d 56-lead qfn 8 x 8 mm lf56a dimensions in millimeters
cy7c6800 1 for for document #: 38-08013 rev. *e page 41 of 42 17.0 document revision history description title: cy7c68001 ez-usb sx2 ? high-speed usb interface device document number: 38-08013 rev. ecn no. issue date origin of change description of change ** 111807 06/07/02 bha new data sheet *a 123155 02/07/03 bha minor clean-up and clarification removed references to irq register and replaced them with references to interrupt status byte modified pin-out description for xtalin and xtalout added cs# timing to figure 11-10 , figure 11-8 , and figure 11-12 changed command protocol example to ifconfig (0x01) edited pcb layout recommendations added ar#10691 added usb high-speed logo *b 126324 07/02/03 mon default state of registers specified in section where the register bits are defined reorganized timing diagram presentation: first all timing related to synchronous interface, followed by timing related to asynchronous interface, followed by timing diagrams common to both interfaces provided further information in section 3.3 regarding boot methods provided timing diagram that encapsulates all relevant signals for a synchronous and asynchronous slave read and write interface added section on (qfn) package design notes fifoadr[2:0] hold time (t fah) for asynchronous fifo interface has been updated as follows: slrd/pktend to fifoadr[2:0] hold time: 20 ns; slwr to fifoadr[2:0] hold time:70 ns (recommended) added information on the polarity of the programmable flag fixed the command synchronous write timing diagram fixed the command asynchronous write timing diagram added information on the delay required when endpoint configuration registers are changed after sx2 has already enumerated *c 129463 10/07/03 mon added test id for the usb compliance test added information on the fact that the sx2 does not automatically respond to set/clear feature endpoint (stall) request, external master intervention required added information on accessing undocumented register which are not indexed (for resetting data toggle) added information on requirement of clock stability before releasing reset added information on configuration of pf register for full speed updated confirmed timing on fifoadr[2:0] hold time (t fah )for asynchronous fifo interface has been updated corrected the default bit settings of epxxflags register added information on how to change slwr/slrd/sloe polarities added further information on buffering interrupt on initiation of a command read request change the default state of the fnaddr to 0x00 added further labels on the sequence diagram for synchronous and asynchronous read and write in single and burst mode added information on the maximum delay allowed between each descriptor byte write once a command write request to register 0x30 has been initiated by the external master
cy7c6800 1 for for document #: 38-08013 rev. *e page 42 of 42 *d 130447 12/17/03 kku replaced package diagram in figure 16-2 spec number 51-85144 with clear image fixed last history entry for rev *c change reference in section 2.7.2.4 from xxxxxxx to 7.3 removed the word ?compatible? in section 3.3 change the text in section 5.0, last paragraph from 0xe6fb to 0xe683 changed label ?reset? to ?default? in sections 5.1 and 7.2 through 7.14 reformatted figure 6-2 added entries 3a, 3b, 3c, 0xe609, and 0xe683 to figure 7-1 change access on hex values 07 and 09 from bbbbbbbb to bbbbrbrr removed t xfd from figure 11-1 and figure 11-3 and tables 11-1,2, and 5 corrected timing diagrams, figures 11-1,11-2, 11-6 changed figure 11-15 through figure 11-20 for clarity, text which followed had reference to t3 which should be t2, added reference of t3 for deasserting slwr and reworded section 11.6 updated i cc typical and maximum values *e 243316 see ecn kku reformated data sheet to latest format added lead-free parts numbers updated default value for address 0x07 and 0x09 added footnote 3. removed requirement of less then 360 nsec period between nibble writes in command changed pktend to flags output propagation delay in table 11-16 from a max value of 70 ns to 110 ns description title: cy7c68001 ez-usb sx2 ? high-speed usb interface device document number: 38-08013


▲Up To Search▲   

 
Price & Availability of CY7C68001-56LFC

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X